all groups > dotnet xml > september 2004 > threads for september 1 - 7, 2004
Filter by week: 1 2 3 4 5
XmlValidatingReader: continue parsing after XmlException
Posted by George W. at 9/7/2004 5:57:12 PM
When attempting to validate an XML file, If the file is valid, it
validates correctly, and it will catch most ValidationEvents without
problem. However, I keep getting the following Exception:
System.Xml.XmlException: The 'RDaaaa' start tag on line '4' doesn't
match the end tag of 'RD' in fil... more >>
Write XML
Posted by Simon Mayr at 9/7/2004 2:25:03 PM
Hi.
I'm new to XML and have a big problem. I should write a program that can
show any XML-File in a TreeView. Thats no problem. Furthermore I should
be able to change any entry in the Treeview and write the changes back
into the XML-File. And thats the problem. It would be easy if I would
... more >>
Help with XPathExpression, please.
Posted by gajba at 9/7/2004 10:56:19 AM
Hi, from an XML beginner..
I have an XML like the one below:
<root>
<vendor name="Microsoft">
<!-- additional sub-tags and items -->
</vendor>
<vendor name="Sun">
<!-- additional sub-tags and items -->
</vendor>
<vendor name="Borland">
<!-- additional sub-tags and... more >>
Xslt problem
Posted by Jon at 9/7/2004 9:33:18 AM
I have a xlst and xml file and i am trying to recreate this line of html
<td height="127"
background="images/greggs/montages/montage_final_2.jpg"></td>
the xml is <Montage>images/greggs/montages/montage_final_2.jpg</Montage>
But i dont know how to use the xsl attribute for background image... more >>
xmlns="" automatically generated
Posted by Zhenya Sigal via .NET 247 at 9/6/2004 10:58:40 PM
I have the following code:
XmlElement parent= m_xmlDoc.CreateElement("parent", "http://tempuri.org/myns");
parent.InnerXml = "<child1>text</child1><child2>text</child2>";
"http://tempuri.org/myns" is declared as the default namespace for this xml file.
When I set InnerXml above, each <child>... more >>
Serializing a class and not get the "?xml version"
Posted by amyl NO[at]SPAM paxemail.com at 9/6/2004 8:32:46 PM
I am using the xml serializer to serialize the objects out of a
collection into a file. The object that is being serialized is a
class in my application. When I serialize my class it produces the
following line.
<?xml version="1.0" encoding="utf-16"?>
for each instance of my serialized cl... more >>
Serializing a class with a string[] array
Posted by amyl NO[at]SPAM paxemail.com at 9/6/2004 7:27:52 PM
I have a class that contains a string array. However, I can't get
this object to serialize in the xml output. Is there a trick to get a
string[] to serialize?
Thanks
Amy.... more >>
XSD Problem when using Xpath code
Posted by ree32 NO[at]SPAM hotmail.com at 9/6/2004 4:28:10 PM
When I import an xml document in Visual studio and Genereate as schema
from it, and create a dataset from it, it adds this line into to the
root element of my xml file -
"xmlns="http://tempuri.org/nameOfRoot.xsd"
I have no idea what its pointing to & what is tempuri.org?
So when this tag i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML problems
Posted by DR BILRO at 9/6/2004 3:37:03 PM
considering the following xml example
<?xml version="1.0" encoding="ISO8859-1"?>
<results>
<interaction>
<point>
<auxf>6.812890</auxf>
<auxh>0.000000</auxh>
</point>
<point>
<auxf>5.614157</auxf>
<auxh>0.479757</auxh>
</point>
<point>
<auxf>4.040000</auxf>
... more >>
Updating and inserting an existing xml document
Posted by Pradeep Kumar C at 9/6/2004 11:24:49 AM
Hi,
I am new to this xml. How can I update and insert some values in =
existing xml document.
which parser i can use for it in dot net. Whether dot net =
XmlTextWriter I can user for this or
there is any other way is there ??
Thanks and Regards,
Pradeep.... more >>
Transforming a typed dataset
Posted by matthew.baskey NO[at]SPAM gmail.com at 9/6/2004 9:55:23 AM
Hello,
I need to reorder a Typed DataSet in memory using an Xsl Transform.
Most of the examples use stream which write to the hard disk or xml
file. I want to do this in memory and then write the resulting Typed
Dataset into a Session object which will be reused on multiple
postbacks
and ... more >>
DataSet.ReadXmlSchema chokes on uddi_v3.xsd
Posted by utarun NO[at]SPAM gmail.com at 9/6/2004 8:45:48 AM
I am trying to read the standard UDDI schema using a DataSet. however,
it always chokes with error. Here are the full details:
Schema used: http://uddi.org/schema/uddi_v3.xsd
C# (.NET) calls made:
public readonly DataSet Schema;
Schema = new DataSet();
Schema.ReadXmlSchema(this.Sch... more >>
problem with retrieving xml document
Posted by Ajay Bhonsule via .NET 247 at 9/6/2004 8:22:40 AM
Hi,
I am writing an application to retrieve RSS feeds from websites. While doing so I get the following error,
Unhandled Exception: System.Net.WebException: The remote server returned an error: (407) Proxy Authe
ntication Required.
at System.Net.HttpWebRequest.CheckFinalStatus()
at Sy... more >>
String to xml document
Posted by Sjeems at 9/6/2004 5:41:03 AM
Hi there,
I was hoping someone can help me with a little problem I can't seem to find
any answers to.
I've got a form wich will be posted. On receiving the post I would like to
parse a formvar to a xml document.
The contents of this formvar (string) will be a valid xhtml document.
Ca... more >>
Error in output from transformation when output exceeds 16040 byte
Posted by Joseph A Romeo at 9/5/2004 9:07:01 PM
I have written an XSLT transformation on an ASP.NET page. The resulting HTML
is primarily a table of links. I have found that when the resulting HTML is
less than or equal to 16040 bytes, the output display is normal, but when the
resulting HTML exceeds 16040 bytes, the output does not displ... more >>
XmlNamespaceManager.LookupPrefix problem.
Posted by Victor Hadianto at 9/5/2004 5:48:24 PM
Hi All,
I have the following code:
<snip>
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(@"<?xml version=""1.0"" encoding=""UTF-8""?>
<myConfig:myConfig xmlns:myConfig=""http://mycomp/myConfig.xsd"">
<myConfig:title>My Title</myConfig:title>
</myConfig:myConfig>");
XmlNamespace... more >>
Best way of adding another node into an XML document?
Posted by ree32 NO[at]SPAM hotmail.com at 9/5/2004 4:32:29 PM
I just need to add a new node whenever someone enters new data on a
page. This doesn't involve any editing of existing nodes in the XML
document. I was wondering whats the "BEST" way to perform this.
I was thinking of a dataset but its unneccessary to read all the
values into the dataset.
T... more >>
WriteXml to include xslt reference statement - how?
Posted by gordonmoore01 NO[at]SPAM operamail.com at 9/5/2004 12:41:32 PM
Hi,
I'm new to using xml/xslt and although I can create an xml document
using the dataset.WriteXml statement, and I have created an xslt to
transform the xml into the output I want, I have to manually add the
xsl reference statement to the xml file.
i.e.
<?xml version="1.0" standalone="ye... more >>
Schema Import Or Include Question.
Posted by WStoreyII at 9/4/2004 1:59:04 PM
what exactly is the difference between import and include?
For Example if i had a schema called common, that had some common elements
that i use such as address, phone ect. And then i created a schema called
customers to keep track of well customers. how would i use the phone element
from... more >>
Reading/altering an .xml document
Posted by Bob Robertson at 9/4/2004 9:42:58 AM
Hey guys -
I'm fairly new to .NET and am trying to do the following: Read in one
..xml document, selectively remove and/or change certain nodes within it,
then save the results in a second document. For instance, if I have:
<a name="a">
<b name="b" miscattr="blah">
<c name="c1"... more >>
generate-id() and Microsoft .NET Framework 1.1 Service Pack 1
Posted by Mitch NO[at]SPAM Ross at 9/3/2004 9:41:01 PM
generate-id() appears to break in XSL transformations after installing
Microsoft .NET Framework 1.1 Service Pack 1 or Visual Studio 2005 Beta. I
have found several references to this searching the net but nobody has
followed up with any answers. Is this really a bug or what? It worked fine ... more >>
XmlValidatingReader - just the FAQS?
Posted by Nuevo Registrado at 9/3/2004 9:53:59 AM
All,
I am having a tough time figuring out how to code a simple app to read an
xml file and an xsd file and validate the xml file using the xsd without
using a namespace for the schema. Help? Also, is there a .NET XML FAQ?
Thanks,
Will
Here are the details:
----------the error
Va... more >>
Cancel async web service call
Posted by DM at 9/3/2004 4:19:06 AM
I want to be able to cancel an async call to a VB.Net web service and for the
web service to know it has been cancelled so that it can abort gracefully.
I have used the Begin.... and End... methods of the proxy class to
successfully run the web service asynchronously. And I used the Abort()
... more >>
XML is UTF-16 encoding but I want UTF-8 encoding ?
Posted by Shailendra Batham at 9/3/2004 1:00:12 AM
Hi there XML Gurus ;)
I am trying to use XML Serialization to create a xml from a class, this =
is the output which I get when I create the XML and put in a string =
variale.
"<?xml version=3D\"1.0\" =
encoding=3D\"utf-16\"?><OutBS><FirstName>XML</FirstName><LastName>Guru</L=
astName><Memb... more >>
How-To Dynamically Create Nested DataTables
Posted by David Elliott at 9/2/2004 1:25:21 PM
I can create this:
?xml version="1.0" standalone="yes" ?>
<ConfigOpt>
<record>
<Field_1>Text # 1</Field_1>
<Field_2>Text # 2</Field_2>
</record>
</ConfigOpt>
I want to create this:
<?xml version="1.0" standalone="yes" ?>
<ConfigOpt>
<settings>
<record>
<Fie... more >>
Order of serialization of attributes
Posted by Lidström at 9/2/2004 9:55:32 AM
Hi,
is there a way to control the order XmlSerializer serializes attributes?
With this class, value is serialized before value. Although it shouldn't
matter, I would like it the other way around, just for style.
<Property value="" label="name" />
public __gc class Property
{
pu... more >>
XmlSerializer constructor fails with xsd.exe generated class
Posted by keith.bannister NO[at]SPAM astrium.eads.net at 9/2/2004 9:12:35 AM
I'm new to .net so here goes.
I'm tying to deserialize a class that is associated with an XML
schema.
I created the C# class with xsd.exe as below:
xsd.exe /c /n:somenamespace properties.xsd
this creates properties.cs
When I do
XmlSerializer s = new XmlSerializer(typeof(somena... more >>
Help Creating XmlNode / XmlAttribute Elegantly
Posted by David Elliott at 9/2/2004 8:52:31 AM
I am creating a configuration class to read / write a standard configuration file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="ConnectionString" value="server=(local);" />
</appSettings>
</configuration>
I am using a XmlDocument for my ba... more >>
Chicken or Egg, XML or XSD?
Posted by gordingin NO[at]SPAM consiliumsoft.com at 9/2/2004 5:53:22 AM
What comes first, XML or XSD? When you start building a project that
will include XML, what would you start on first, building your XML data
file or your XSD schema file?
thanks
Ralph Krausse
www.consiliumsoft.com
Use the START button? Then you need CSFastRunII...
A new kind of applicat... more >>
SelectNodes
Posted by johndoe NO[at]SPAM driver.net at 9/2/2004 4:41:01 AM
I am having a bit of a brainfart here at 4am in the morning.
I have
XmlNodeList TmpServers = ServerNodes.SelectNodes("[server='" +
DataSource + "']");
and I have also tried
XmlNodeList TmpServers = ServerNodes.SelectNodes("server='" + DataSource
+ "'");
DataSource is computern... more >>
XMLREADER
Posted by david at 9/2/2004 4:33:08 AM
If I run the following code :-
XmlReader rdr = dal.Getxxxx
rdr.MoveToContent();
string xmlstring = rdr.ReadOuterXml();
how can I load the string back to a XPathDocument or a XPathNavigator. hmm
does anyone know ?
David Price... more >>
Ask for xmlelement copy method
Posted by Steven.Xu at 9/1/2004 9:55:02 PM
Hello everyone.
I have two instance of xml.xmldocument. One is XA another is XB. XA has a
child node XA1. XA1 has many attributes and child nodes. Now I want to copy
XA1 to XB with all of it's attributes and child nodes. In .NET, the type of
XA1 is xml.xmlelement.
If I use clone method. The... more >>
XmlSerializer Collection with Collections
Posted by MBaskey2002 NO[at]SPAM yahoo.co.uk at 9/1/2004 4:51:05 AM
Hello I got this working but it is not how I really want it, basically
I have an xml file which has a root of <test> and can be filled with 3
different types of <question> elements with different attributes, all
share a base set of 4, one of the question types can have children
with <option> ele... more >>
Loop through and count occurences
Posted by Niklas E at 9/1/2004 1:16:37 AM
Does anyone know how to get all nodes in a xml-document that start with a
certain text?
In my case I want to count all suppliers ( <id>Supplier*</id> )
<root>
<customer>
<name>ABC</name>
<id>Supplier123</id>
</customer>
<customer>
<name>DEF</name>
... more >>
|