xml

Deserialize XML to custom Class in Flex?

Is it possible to deserialize an XML file to a class in Flex without manually checking the XML and/or creating the class, with the help of a HttpService? Edit: Explained a bit more and better. We have an XML file which contains: <Project> <Name>NameGoesHere</Name> <Number>15</Number> </Project> In Flex we want this to be serializ...

how to load a XDocument when the xml is in a string variable?

How do I load an XDocument when the xml is in a string variable? ...

Asp website with vbsript functioning differently on different servers

Hi there, I am currently trying to move a web site from one server to another, one of the asp pages contains some vb script that looks like this: Dim oSearch 'AS Object Dim strXML 'AS String Dim strXSL 'AS String Dim oRS 'AS ADODB.RecordSet Set oSearch = Server.CreateObject("ETHERNET_PL.CETHERNET_PL") strXSL = Server.MapPath("...

Loading XML File into Javascript

Hi all, I have an XML file, which can be viewed here,(click "Download File" on the page that the link takes you to, and it will open the XML in your default browser) of data concerning a series of music albums, which I would like to load into javascript into an array called "mymusic" in this form: mymusic = [ { title:, artist:...

Why my XPath request to XML file on web doesn't work?

There is an XML file with exchange rates http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml: <gesmes:Envelope> <gesmes:subject>Reference rates</gesmes:subject> <gesmes:Sender> <gesmes:name>European Central Bank</gesmes:name> </gesmes:Sender> <Cube> <Cube time="2009-11-26"> <Cube currency="USD" rate="1.507...

JAXB minOccurs=0. Element exists or not?

I have an XML schema: <xsd:element name="Person"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string" /> <xsd:element name="lat" type="xsd:double" minOccurs="0"/> <xsd:element name="lon" type="xsd:double" minOccurs="0"/> </xsd:sequence> </xsd:complexType> </xsd:element> And I have an XML message:...

Why doesn't my JavaScript XML processing code work in Safari?

I use the following code to open an XML document. It works in Firefox and IE, but fails in Safari. Any idea why? function crearObjetoXML(archivoXML){ //--- IE. if(window.ActiveXObject){ xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.load(archivoXML); parsearXML(); //--- FF. }else if(...

Validating XHTML elements with XML children

G'day guys, I've tried reading the XML Modularization recommendation which promises to allow custom XHTML extensions but can't make heads nor tails from it. I need an XML document containing a mix of XHTML and user-defined XML elements to validate and having trouble doing so. Unfortunately I'm using an XSD and not a DTD, a la XSL which v...

How to avoid a SAXParseException using Xerces when HTML file includes mdash?

I am using the Xerces implementation within JDK6 to perform XPath queries on an HTML 4.0 transitional document. With the following code: XPath newXPath = XPathFactory.newInstance().newXPath(); XPathExpression xpathExpr = newXPath.compile(expression); Object xPathResult = xpathExpr.evaluate(inputSource, XPathConstants.NODESET); Where...

Using ILMerge, is it possible to merge XML documentation files with the DLL ?

I know I can merge PDB with a DLL file but I'm trying to do the same with an XML documentation file. It should be possible since you don't have .xml files with .net assemblies and yet you have documentation in the IDE. Is there a way ? ...

How do I create and read an xml file with jquery

I know there is alot of information to do this in the internet, but I got very confused. I want to create an xml file and send it with Ajax to the server. I will need to reseve and xml file back. This is an example of the XML file I will need to create. <?xml version="1.0" encoding="UTF-8"?> <data> <item>dkfjgn</item> <item>sd...

Adding non-escaped Ampersands to HTML with Nokogiri::XML::Builder

I would like to add things like bullet points "•" and such to html using the XML Builder in Nokogiri, but everything is being escaped. How do I prevent it from being escaped? I would like the result to be: <span>&#8226;</span> rather than <span>&amp;#8226;</span> What am I missing? I'm just doing this: xml.span { xml...

Problem with xml select in tsql - can't seem to orgenize multi nodes in the right order

Hello every one....this is my code, i am trying to make a simple 3 nodes select in XML and it is not working, i am getting the parent, the second nodes (all of them) and then the third nodes (all of them) (categories->category(all)->products(all) and not in the right order (categories->category->all products for that category) selec...

c# xml.Load() locking file on disk causing errors

Hi all, I have a simple class XmlFileHelper as follows: public class XmlFileHelper { #region Private Members private XmlDocument xmlDoc = new XmlDocument(); private string xmlFilePath; #endregion #region Constructor public XmlFileHelper(string xmlFilePath) { this.xmlFilePath = xmlFilePath; ...

Remove XmlNodes with xslt transformation

I need to rip some xml nodes from a xml document. The source is <root> <customElement> <child1></child1> <child2></child2> </customElement> <child3></child3> <child4></child4> </root> the result should be <root> <child1></child1> <child2></child2> <child3></child3> <child4></child4> </root> ...

NSXML replacing "<" with "%lt;"

I see there are other questions related to this, but none using NSXML. So, I'm constructing an XML document from scratch using NSXML and when I create a NSXMLNode with a string value, all the "<" characters in that string are replaced with "& lt;" when I output the node, or save it to a file. Example: NSXMLNode *description = [NSXMLN...

Displaying ® symbol in Silverlight.

Folks! I am trying to display ® and superscript TM symbols in my silverlight app. I want to save the text containing the symbols in a resx file. Things i have tried: Copy paste the ® symbol from any document to resx file. ® symbol gets displayed in the resx file. But, when running the silverlight app, xamlparseexception ...

XML parsing and usage

Hi, I'm building a conforming and validating XML parser in C++ and trying to make it light-weight for use in pocket pc. At the beginning I decided to add some "events" to my parser like SAX does, informing about elements, processing instructions, etc. This events are taken by a derived class that builds the DOM tree of the xml. My do...

Xpath within ItemDataBound for Repeater

Okay so I'm pulling in an XML feed from feedburner, using an XMLDataSource and a repeater. <asp:Repeater ID="rptrEvents" OnItemDataBound="rptrEvents_ItemDataBound" DataSourceID="XmlDataSource1" runat="server"> <ItemTemplate> <li runat="server" id="liLineItem"> <a href="<%#XPath("link")%>"> ...

How to fix noncompliant HTML so Expat will parse it (htmltidy not working)

I'm trying to scrape information from http://www.nfl.com/scores (in particular, find out when a game is over so my computer can stop recording it). I can download HTML easily enough, and it makes this claim about compliance with standards: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/D...