all groups > dotnet xml > august 2004 > threads for august 8 - 14, 2004
Filter by week: 1 2 3 4 5
Extracting XML from html file
Posted by gee57 at 8/13/2004 4:19:02 AM
I am trying ti extract data from a html file in an xml format. The html
contains java script and I only want a small part of the file to be
extracted. Can anyone tell where I can get C source code that does this or an
..exe file. Or any help that will point me in the right direction. Thanks in... more >>
Working With Ampersands
Posted by AJ Brown at 8/12/2004 10:29:47 AM
How does one allow the use of ampersands (or other special characters
for that matter) within Element text and Attribute text?
I have problems using LoadXml from a string "<text value="Jack &
Jill"/>" into an XmlDocument.
I can't for the life of me find a switch that turns off this feature... more >>
Retaining Entities on XmlDocument LoadXml
Posted by AJ Brown at 8/12/2004 10:02:39 AM
I'm loading an XmlDocument object from a string using LoadXml. The
string is a well-formed XML fragment (see example) and loads fine,
however there are entities (&) within attribute values. The loader
parses the incoming entities and converts them to their character
references automatica... more >>
problem with validating XHTML 1.1-documents
Posted by Joris Janssens at 8/11/2004 11:46:19 PM
I'm trying to write a program for validating XHTML 1.1-documents
against the XHTML 1.1 DTD (which is actually the same as validating an
XML-file) but I always get a "(404) Not found" error.
This is the program itself [C#]:
*******************************************************************... more >>
Help with DataSet/XSLT Transform.
Posted by gambinopete NO[at]SPAM yahoo.com at 8/11/2004 8:22:45 PM
I'm trying to do a transform to a simple data set. When Exported the
Dataset XML looks like this:
<RFAData xmlns="http://tempuri.org/RFAData.xsd">
<RFA_Project>
<ProjectID>11729</ProjectID>
<ContactID>877</ContactID>
<CompanyID>1277</CompanyID>
<RequestDate>2004-08-10T22:... more >>
XPath and SQLXML
Posted by Hollywood at 8/11/2004 7:25:45 PM
I have the following XSD created in VS.NET 2003:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="ReferralSchama" targetNamespace="http://test.org/Referral"
elementFormDefault="unqualified"
xmlns="http://test.org/Referral" xmlns:mstns="http://test.org/Referral"
xmlns:xs="http://www.w3.... more >>
XML help
Posted by Tim at 8/11/2004 2:15:29 PM
Here is my Test.xml file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<addkey="InstanceName" value="Server1" />
<addkey="UserID" value="sa" />
<addkey="Password" value="testing" />
</appSettings>
</configuration>
Dim hReader As XmlTextReader = New XmlText... more >>
How to Supress XML Processor instruction
Posted by Kevin C at 8/11/2004 1:26:04 PM
Is there a way to suppress the rendering of the xml processor instruction
when using the XmlSerializer? I do not want "<?xml version="1.0"?>" to be
written out. Also, do classes generated from XSD.EXE care about the value
of "elementFormDefault". I don't see anywhere in a class any references ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bug fix?
Posted by specialagent.mulder NO[at]SPAM gmx.net at 8/11/2004 2:08:36 AM
Hi,
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message news:<uyJoG9HeEHA.1000@TK2MSFTNGP12.phx.gbl>...
> No, it's way more convolute. Looks like XslTransform doesn't like
> vars/params defined later when they are used in attribute context.
> That's definitely a nasty ... more >>
How can I run an XPath on a very large file?
Posted by JerryShea at 8/10/2004 11:51:01 PM
My program runs out of memory when I do this:
string filename = @"large.xml";
XPathDocument doc = new XPathDocument(filename);
XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator iterator = nav.Select("//items/item");
while (iterator.MoveNext()) {
....
}
I get the same be... more >>
Help: How to check if a node exists?
Posted by hb at 8/10/2004 12:15:15 PM
Hi,
I need to check if a node exists in a XmlDocument object before to use
SelectSingleNode() to
process. I tried with
if(XmlNode.SelectSingleNode("ABC")!=null)
But this only works when the node "ABC" exists. If the node doesn't exists,
I will get an error
saying object not found. Woul... more >>
de-serialize part of xml document
Posted by Lidström at 8/10/2004 11:11:08 AM
Hi,
what happens if my classes don't include every element/attribute that can
be found in the xml file, i.e. I don't implement the entire schema. Will I
get just the elements I'm asking for?
--
Daniel... more >>
XmlSerializing array of objects (but ignoring the array name itself).
Posted by tditiecher NO[at]SPAM hotmail.com at 8/10/2004 8:42:31 AM
The code below will serialize the Catalog object something like:
<Catalog>
<CatalogTitle>MyCatalog</CatalogTitle>
<Books>
<Book>
<Title>Book1</Title>
</Book>
<Book>
<Title>Book2</Title>
</Book>
</Books>
</Catalog>
But I don't want the 'Books' element t... more >>
removed child breaks a for loop
Posted by glenn.mantle NO[at]SPAM bt.com at 8/9/2004 5:22:26 PM
in the following code
For Each child In nodeFarm.ChildNodes
For Each oAttribute In child.Attributes
If oAttribute.Name = "LastUpdated" Then
lastUpdate = oAttribute
End If
Next
... more >>
validating individual element names?
Posted by Developer at 8/9/2004 12:18:04 PM
Hello,
Is there a way to validate an xml fragment? For example, I'd like to know
whether this tag is legal, and if not, what's wrong:
<complexType name="CIty Grid">
Thanks.
... more >>
Problem Loading xml document
Posted by Tom Vukovich at 8/9/2004 11:20:35 AM
I'm having a problem loading an xmldocument from the web. The xml i wish to
bring into the application is generated from a request to an ASP page. The
following code does not work.
xmldoc2.Load(http://Blah/Blah/blah/NYISOZoneData.asp?Zone=ALL)
However if i save a copy of the generated file a... more >>
Deserializing XML feed (nested array problem)
Posted by elixxir at 8/9/2004 7:24:24 AM
Hiho,
I'm trying to deserialize the following XML feed from the weather
channel but I'm having an issue with the nested arrays. I got as far as
getting the 'day' into arrays but I can't get the 'part' nested array
working.
This is my first hack at XML feeds and such, so any pointers as to h... more >>
XmlSerializer and ICollection
Posted by Kent Boogaart at 8/8/2004 10:37:41 AM
Hello all,
I have two simple classes: Item and ItemCollection. Item stores a label for
the item and an instance of ItemCollection for all child items.
ItemCollection just stores a collection of Items. ItemCollection implements
System.Collections.ICollection.
When I use XmlSerializer to seri... more >>
Looking for a Stylesheet Builder
Posted by Wayne Wengert at 8/8/2004 10:26:45 AM
I am looking for a program to help build stylesheets for XML files. So far,
I found and tried Stylus Studio and StyleVision (Altova). I like the UI and
functions in Stylevision but it won't accept any xsd files that don't
include namespaces and namespace prefixes on each element - a real problem
... more >>
µ_taken_for_EndEntity
Posted by Bob the beginner at 8/8/2004 8:33:02 AM
I am reading XML and i think that xmlReader take the letter 'µ' for
an EndEntity
Any ideas
... more >>
|