xml

Actionscript 3.0 Updating XML file

Is there a way to modify xml document via actionscript? I have bare xml file i.e. <words> <word> <name>this</name> <title>that</title> </word> </words> I want to add more words on this file via actionscript. Is that possible? If yes, what tag should I look into? Thanks, Rex ...

SQL Server 2005 XML to table

I'm using classic asp and I'm passing in a varchar (ado data type) into an xml data column in a proc. The xml looks as follows: <DocumentCriteria> <Document documentGUID="{B49654E7-9AF2-4B89-AF8F-5146F7CD4911}" graderFYC="5907"> <criterion cnumber="1" rank="3"/> <criterion cnumber="3" rank="3"/> </Document> </Docume...

remove everything between 2 tags that span branches of an xml tree.

I'm trying to remove everything in an XML Document between 2 tags, using python & lxml. the problem is that the tags can be in different branches of the tree (but always at the same depth) an example document might look like this. <root> <p> Hello world <start />this is a paragraph </p> <p> Goodbye world. <end />I'm leaving now...

Fancy XML or name/value pairs on save of data to SQL Server

I have a classic ASP application for student grading with a paper (with an ID and a userID) that requires a grade and scores from several different criteria (criteria 1, score 1, criteria 2, score 2) I wonder if I should put this in XML and push it into SQL Server as XML or convert the name/value pairs to a delimited string and just par...

C# WPF Program crashing when opened by a different Windows user

Hi, I've created an application that loads data in from XML files locally, and with these files it finds images, videos, and EXE's that the player can run from dynamically created buttons. When loading files and images and running EXE's, I try/catch all over the place as to not crash. However, today a user crashed the program by trying...

using conditions in XPath expressions

Hi, I need to parse through an XML document in the database and search for a given expression in it. Then, I must return a String value if the given expression is present in the XML else I need to parse through the next expression and return another String value and so on. I achieved this by using the following code: // An xml docume...

Avoid the carriage return when writing InnerText in xml elements using System.Xml.XmlWriter

Hi everyone, I'm using XmlWriter to save an XmlDocument in .Net. However all the elements that have InnerText are written with surrounding carriage return characters. I tried using XmlWriterSettings to avoid the writing of those characters, but no luck yet. Here it is a piece of code used: XmlDocument outXml = new XmlDocument...

How do i Export a DataTable to an *.xls file (excel) in C# Compact framework 3.5?

i have a table in a C# compact framework 3.5 application that i need to export to an excel that will be used on a regular desktop pc. i already wrote it to an XML successfully if that helps... but i need a .xls file please help... ...

How to write a XML file using dataset having multiple table with the help of XmlWriter?

I am using a dataset and storing a Query result into that data set. My Query id is like that String Query = @"SELECT * FROM TABLE1; SELECT * FROM TABLE2; SELECT * FROM TABLE3;"; I am using following thing XmlDocument relationSheepDoc = new XmlDocument(); StringWriter sWriter = new StringWriter();...

Rails XML parsing...

Can anybody tell me how to parse this on rails. <?xml version="1.0" encoding="utf-8"?> <message> <param> <name>messageType</name> <value>SMS</value> </param> <param> <name>id</name> <value>xxxxxxxxxxxxxx</value> </param> <param> <name>source</name> <value>xxxxxxxxxxx</value> </param> <param> <na...

Enumerating Ling.Xelement

How to adjust this code to work when RESPONSE is no more string but Ling.Xelement? String response = "anyxml data"; XmlDocument xmlDocument = LoadXMLDocument(response); XmlNodeList nodeList = xmlDocument.GetElementsByTagName("fql_query_response"); if (nodeList != null && nodeList.Count > 0) { ...

C#: Modifying the header of an XML file

Hi, I am creating an XML file in C# using a XSD Schema of an InfoPath form. When I save the IP form without using the code, I get an XML file with the following header: <?xml version="1.0" encoding="UTF-8"?> <?mso-infoPathSolution solutionVersion="1.0.0.113" productVersion="14.0.0" PIVersion="1.0.0.0" href="file:///\\Hmfp\mcs-shared\PM...

In what context are angle brackets escaped with backslashes?

Hello, a bit of unusual question - in what context are angle brackets escaped with backslashes? I am sending an XML document (as a string xsd type) through a web service, which saves it to database, but there I see all XML's angle brackets escaped with a backslash, so I am wondering where exactly (Java XML creation using DocumentBuilder...

How do I access a parse tree created by XML::Parser?

I have a array reference which has some number of array references inside it. The nested array references also contains the array references. (This is the tree style of XML::Parser.) my $Filename = "sample.xml"; my $Parser = new XML::Parser( Style => 'tree' ); my $Tree = $Parser->parsefile( $Filename ); Here the $Tree is the array ...

XPath expression - help needed

Hello, I have sample XML like this: <users> <user name="user1"> <roles separator=",">ADM,USER</roles> </user> <user name="user2"> <roles separator=",">ADM,GUEST</roles> </user> <user name="user3"> <roles separator=",">READER,GUEST</roles> </user> </users> Is there any way to get all us...

using the & char in xml/xsl file

Hi, my xml file has the example tag with <tag>value&value</tag> there is an error when start the xsl file... I use also &amp and the header <?xml version="1.0" encoding="iso-8859-1"?> but not ok Thanks! ...

Stop generation of TestResult.xml with NUnit GUI test runner

Is it possible to stop the generation of TestResult.xml when using the NUnit GUI test runner, or to change the location that it is saved to? At the moment, it is always saving to the same directory as the nunit project file, and I can't seem to alter the behaviour. (Probably brain-freeze on my part.) I am using the latest release of NU...

Why are xml transformations needed?

What is basic need of xml transformation? In which situation we can use this ? can we use this in .Net? ...

What's the right test case to find which method call is faster between execute and getElementsByTagName?

What's the right test case to find which method call is faster between XPathExpression.execute("child::") and Element.getElementsByTagName("")? Via DOM search: NodeList nl = ((Element)this.currentNode).getElementsByTagName("*"); or via XPath: public static final <T> T xpath(QName qType, Node n, String exp) { try { XPathE...

Xml document to DOM object using DocumentBuilderFactory

Hi, I am currently modifying a piece of code and I am wondering if the way the XML is formatted (tabs and spacing) will affect the way in which it is parsed into the DocumentBuilderFactory class. In essence the question is...can I pass a big long string with no spacing into the DocumentBuilderFactory or does it need to be formatted in ...