xml

XML element with "xsi:type" attribute does not validate. It expects a "type" attribute

I have XML that includes an element that has the attribute: xsi:type="AnswerBool". My xsd has that element and has set up an attribute with the name="type" and then restricts the enumeration values to "AnswerBool" (and others). However, when I try to validate the XML it fails. If I change the XML so that the element uses type rather than...

translate mainframe data packet to an XML packet in .net

is there a way to translate mainframe data packet Format(Flat Files,CVS) to an XML/NIEM Format in .net? or any suggestions would be appreciated Thanks ...

xpath expression to select child node based on parent properties

<module> <component> <section> <ptemplateId root="1.8"/> <entry> <observation> <templateId root="1.24"/> </observation> </entry> </section> </component> <component> <section> <ptemplateId root="1.10"/> <entry> <observation> <templateId root="1.24"/> </observation> ...

How can I get the raw xml from an IXMLDOMNodeList in Microsoft Access?

How can I extract raw Xml text from an MSXML2 - IXMLDOMNodeList in Microsoft Access? ...

XML repair in C#

The file format my application uses is Xml based. I just got a customer who has a botched xml file. The thing contains nearly 90,000 lines and for some reason there are about 20 "=" symbols randomly interspersed. I get an XmlException for most of them with a line number and char position which allows me to find offending chars and remov...

Serializing fields in a custom DataSet to XML

Is there any way to add fields to a DataSet which will be serialized along with the table information when the DataSet is serialized in XML? I have some information that describes the DataSet that I want to try to include inside it when I throw it around in XML. I've tried adding fields and classes in the partial class Visual Studio gene...

copy XML using XSLT into JSON

Hello, I would like to copy XML using XSLT into JSON. The JSON result would look like this: callback( {"xml":" <?xml version="1.0" encoding="UTF-8"?> <root> ... </root> "}) and my XSLT so far: <xsl:template match="/"> <xsl:text>callback( {"xml":"</xsl:text> <xsl:copy-of select="*"/> <xsl:text>"} )</xsl:text> <...

Clojure Application Data Exchange

I would like to move data back and fourth between clojure applications. Application settings and some state information. I can not decide between using xml or s-expressions, what do you think pros and cons of each approach? ...

Java XML Transformer, "HTML" method adding <META> tag, do not want

I'm using the built-in Java XML Transformer to serialize an XML document into text. I'm having a problem however when I am outputting in HTML mode. Whenever I insert a head element the built-in transformer decides to insert a META tag with content-type data. I don't want this tag inside my data and I can't seem to find an output paramet...

RegEnumkeyEx for xml

<computer> <Keyboard/> <Mouse/> <HardDisk/> </computer> Here ,Assume xml as a registry ,computer is a registry key ,and it have keyboard,mouse,harddisk ,these are subkeys to computer..now can u help me ,how can enumerate a subkey from xml using MSXML and registry function...Thanks in advance. ...

Can I put control characters in XML via XSLT?

I have the following problem: I have an XML and an XSLT file to process this it and generate output. The output of this process should contain a control character '0B'. And as far as I know, XML doesn't embed control characters, so how can I accomplish this? ...

XML hierarchy with Java properties

Let's say I have a class Foo with some primitive instance variables. I initialize these with properties in XML files. Now every Foo also has a Bar as a variable, which in turn has its own properties. Since these are tied to the enclosing object, it would make sense to keep them in the same file. How should I format the XML so that it can...

How to open XML file with Excel?

I want to develop a small tool which for open XML file and launch Excel automatically. The benefit for user who could save the excel file to .xls format very conveniently. My Dev IDE: Windows XP pro & Visual Studio 2005. The tool will running at Windows 2000 & Excel 2000. and there is no .net framework installed. That means i can't c...

What's the easiest way to get just the top-level text of an XmlElement?

Suppose I have some XmlElement; let's call it element. If I want to get all of the child nodes of that element, I can call element.ChildNodes. If I want the text of the element and all its children, then I can go with element.InnerText. However, suppose I have some XML that looks like this: <TopElement attr1="value1" attr2="value2"> ...

PHP - SOAP - lastResponse - Display Fields & Values?

Hi guys, I've got a SOAP fault response that i'm trying to output into a sort of 'print_r' nice format so I can include the fault in an email to our IT staff when SOAP request fails. Can anyone tell me the best way to simply format an XML SOAP faultstring in the format, variableName: variableValue? Cheers ...

How to create xml plist for Xcode from Excel spreadsheet

I have a spreadsheet, the contents of which I would like to include as an xml plist in my Xcode project. However, I can't figure out how to actually perform the export from Excel and the import into Xcode. Any help would be greatly appreciated please. ...

Parsing XML references in Delphi

I used Delphi 2006 data binding wizard to create a interface for an XML configuration file. Later on I realized that some repeated parts of the XML can be separated from the main file and referenced where needed. The resulting XML looks something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module [ <!ENTITY Schema65 SYST...

How to save XML file to host?

I use DOM to read and write XML file but it don't work. My code like this: <? $dom=new DomDocument(); $dom->Load("http://localhost/xml/file.xml"); $root=$dom->documentElement; ... $dom->Save("file.xml"); ?> It not work. But when i try $dom->Save("C://file.xml"); It work fine. I don't understand while it not work. Anybody can tel me ...

Reading XML using Python minidom and iterating over each node

I have an XML structure that looks like the following, but on a much larger scale: <root> <conference name='1'> <author>Bob</author> <author>Nigel</author> </conference> <conference name='2'> <author>Alice</author> <author>Mary</author> </conference> </root> For this, I used the following code: dom = parse(filepath) conference=dom.ge...

Filtering data - REST <RSS>

I wonder if anyone can help me filter this data in some way? Here is a link to the data: http://tinyurl.com/mykv85 I'd like to create a web page to display this data but also filter it in some way. ...