xml

Why does my XSD file fail to parse with XML::LibXML?

I am trying to validate an XML against schema using LibXML::Schema Validator CPAN module. In that same script am using XML::DOM CPAN module to parse the XML. I want my script to take XML file validate it against XSD and parse it. When I try to run the script, after validating against xsd it exits and does not parse XML. I want it parse...

javascript error: "data.getElementsByTagName is not a function"

Hi, I've spent hours on this stupid error, so any help would be appreciated! I'm using Jquery to request xml from a python file hosted on google appengine. I'm then trying to process the xml. Here's the response to the post request obtained from firebug: <?xml version="1.0" encoding="ISO-8859-1"?><building key='agdhcHRydXNochALEglCdWl...

Is there an easier way to parse XML in Java?

I'm trying to figure out how to parse some XML (for an Android app), and it seems pretty ridiculous how difficult it is to do in Java. It seems like it requires creating an XML handler which has various callbacks (startElement, endElement, and so on), and you have to then take care of changing all this data into objects. Something like t...

Powershell XPath selection

Hi, I'm looking to use powershell to alter xml. I haven't been able with powershell to copy xml using the xpath. I can load the xml with the following: $doc = new-object "System.Xml.XmlDocument" $doc.Load("XmlPath.xml") but after I get the XML I can't figure out how to list the xml with an xpath and create another xml file with wha...

Serving REST Services

Hi everyone, How can I write this output to the stream ? I want to write element to the stream as text/xml format. I am just trying to create simple REST service. I want to use element.Save method. <%@ WebHandler Language="C#" Class="Calculation" %> using System; using System.Web; public class Calculation : IHttpHandler { public...

Help with parsing XML document using 'Reader' and Nokogiri

Hi. I am a newbie when it comes to using Nokogirie reader to parse an xml file. Here is the xml file I want to parse and sample code: <?xml version='1.0' encoding='UTF-8'?> <inventory> <tire name="super slick racing tire" /> <tire name="all weather tire" /> </inventory> -------------------------------------------------------------...

Blackberry - send/receive XML data with webservice

Sample program for creating XML and send the XML data to web service and getting back the XML response from web server in blackberry? ...

What is use of feature.xml in moss2007?

What are the exact use of feature.xml, onet.xml, webtemp.xml ? please describe.... ...

How to create a flip book/page?

Hi, I need to create a flip book/page application. I have seen flash created flip page, can it be done in any other languages, e.g. jquery or javascript? And also, what are some concepts that I am required to have in mind/knowledge on for creating a flip book? Thanks. ...

Problem with IE8 accelerator

I am trying to make an accelerator to pull up patent documents when the selection is a US patent number. All attempts at installation result in "There was a problem with the Accelerator's information." I am doing my best to follow examples and research possible pitfalls, without success. The xml won't even display in my browser. My insta...

Parse xml in powershell

Hi, I have the following xml: <?xml version="1.0" encoding="UTF-8"?> <sections> <section name="Options"> <item key="HLVersionControlWebServiceURL" value="http://www.personec.no/webservices/HLVersionControl/HLVersionControl.asmx" /> <item key="AltinnWebServiceURL" value="https://www.altinn.no/webservices/DataExchange.asmx" /> ...

How prevent System.Xml.XmlDocument from escaping attributes values

Hi, I've got an XML doc to deal with that contains attributes like: <action name="foo -> bar"> If I make a simple: XmlDocument doc = new XmlDocument(); doc.Load(stInPath); doc.Save(stOutPath); The attribute string is escaped: <action name="foo -&gt; bar"> Which is the very thing I'd want to prevent. Do you know any way to do ...

Cached XML for PHP?

I have a custom PHP framework and am discovering the joys of storing configuration settings as human-readable, simple XML. I am very tempted to introduce XML (really simple XML, like this) <mainmenu> <button action="back" label="Back"/> <button action="new" label="New item"/> </mainmenu> in a number of places in the framework. It i...

Generating C# class file from XML Schema....How to? thanks .

Hello. Good day. I want to parse a complex XML schema file and export to a C# file. Does i need take use System.XML.Schema namespace ? I don't know how to start my job. Thanks in advance. BR! Nano ...

Different options for XmlSerialization and derived type

I have the following object graph: public class BaseType { } public class DerivedType : BaseType { } When I pass DerivedType to XmlSerializer I need to have it reflect on BaseType instead of DerivedType. Is there a way to control this with attributes without implementing IXmlSerializer on DerivedType? ...

How can I parse XML using Java?

<?xml version="1.0" ?> <input> <sys> <protocol>TL1</protocol> <ipAddress>10.05.2.3</ipAddress> <port>2001</port> <prompt>agent</prompt> <TL1Command> <type>get</type> <command_code>...........</command_code> <staging_block> <tid>...........<...

Parsing AS3 XML objects

I am getting an object back from ASP.NET, and when tracing the XML it as follows: var xml:XML = new XML(event.message.body); trace(xml); I get the following output: <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost:49329/"&gt; <string>One</str...

xerces-c 2.8 : error while loading shared libraries

Hi, I'm trying to compile a program running on an HP UX server on a Red Hat Linux. It uses xerces-c library to parse xml files. Compilation is ok, but when i try to run it, I get the following message ./a.out: error while loading shared libraries: libxerces-c.so.28: cannot open shared object file: No such file or directory ...

Is binding from two datasources possible?

Hello, I would like to know, if it is possible to do something like this in XAML. <Binding Source="{StaticResource baseData}" XPath="/baseData/nodes[@value={StaticResource actualData},XPath=/actual/node}]/text" /> The code-example ist not possible. But how could I select a node from baseData with the value of the node /act...

Is it possible to have complexType and elements inside but without the sequence part

I hava a xml doc (and complex element) that is similar to this example: <xs:element name="employee"> <xs:complexType> <xs:sequence> <xs:element name="firstname" type="xs:string"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> But in my xml it shouldn't matter if I add firstna...