xml

Spring schemaLocation fails when there is no internet connection

Hi I am using Spring and at application-context.xml file; i have definations like : <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springfram...

regarding xml parser....

what is an xml parser? how many types of parsers are there? which is the best xml parser to parse an xml document? how does an xml parser will work? can any one tell it briefly? ...

Prevent XmlSerializer from emitting xsi:type on inherited types

I have managed to serialize a class that inherits from a base class to XML. However, the .NET XmlSerializer produces an XML element that looks as follows: <BaseType xsi:Type="DerivedType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; This, however, causes the receiving end of a web service to choke and produce an error tha...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word seemingly randomly splits them in the separate words. For example, instead of this: <w:t>${dl.d.out.ecs_rev}</w:t> I have this: ... <w:t>${</w:...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that are stored in the collection (primarily their IDs, and not the remaining contents of each element). Anyone have an idea of how I might go...

Chilkat XML parser

Have anyone used the Chilkat XML parser library? Do you know if it is free or use and just have to pay for its support? Any experience using this API? Thanks! ...

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml to a CDATA element? ...

XSLT Transform XML with Namespaces

I have some XML that I am trying to transform to HTML using XSLT, but I can't get it to work for the life of me. Can someone tell me what I am doing wrong? XML <ArrayOfBrokerage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.test.com/"&gt; <Brokerage> <BrokerageID>91</BrokerageID> <LastYodleeUpdate>0001-01-01T0...

how to represent it in dtd ?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ? ...

XML DOM parsing br tag

Hi, I need to parse a xml string to obtain the xml DOM, the problem I'm facing is with the self closing html tag like <br /> giving me the error of Tag mismatch expected </br>. I'm aware this can be overcome by using <br></br> instead of <br /> in the string, but is there a way this can be done without making the above change. please ...

quick xslt for-each question

Let's say I have an XML document that has this: <keywords> <keyword>test</keyword> <keyword>test2</keyword> <keyword>test3</keyword> <keyword>test4</keyword> </keywords> And i want to use XSLT to print it out in HTML like this: <ul> <li>test</li> <li>test2</li> <li>test3</li> <li>test4</li> </ul> What would my XSLT look like? I tr...

How to read/write nodes and child nodes from xml file in c# maybe using xpath?

Hello, Maybe somebody could help me. I need a two methods. The first should open a xml file and get all nodes with the given parameter ie.: XML file (file.xml): <Menu id="1" Name="myMenu"> <MenuItem Header="Header 1" Name="header1" /> <MenuItem Header="Header 2" Name="header2"> <MenuItem Header="subHeader 2.1" Name="header2_...

Using Scala, how does one differentiate XML elements having elements as children, or having text?

I'm parsing some xml, and given a particular node, I'm trying to figure out which one of these it is: An element with nested elements <theElement><nestedElement>foobar</nestedElement></theElement> An element with text/data in it <theElement>foobar</theElement> I've tried checking the length of Node.text, but Node.text returns "foob...

How to get attributes value while parsing xml with XML::DOM parser in perl ?

How can I get actual attribute value instead of XML::DOM::NamedNodeMap=HASH(0xa3246d4) while using getAttribute function from XML::DOM parser Code my $parent = $doc->getElementsByTagName ("ParentTag")->item(0); my @parent = $childnodes->getChildNodes(); { foreach my $parent(@parent) { ...

Post XML to .net web service

Hello, I am a big noob to start off. I typically use SOAPsonar to get a WSDL and then fill out the XML and then POST it Now I want to be able to use Python to take an XML file and POST it to the same URL that I would use in SOAPSonar - Basically I want to do the same thing I do in SOAPSonar but, using Python. I sure could use some help...

Ascii to XML Character set conversion

Is there any classes to convert ascii to xml characterset preferably opensource i will be using this class either in vc++ or C# My ascii has some printable characters which is not there in xml character set i just tried to sen a resume which is in ascii character set and i tried to store it in a online crm and i got this error message ...

How to sort XML elements in Java?

I am trying to sort XML documents according to their nodes. What is an efficient sorting method? ...

Add a record to relational XML with C#

I have a XML and XSD I want to add a record to trck table with Dataset i'm also write that code but need trackListrow... how can i handle that? playListDS rec = new playListDS(); if(File.Exists(Server.MapPath("~/playlist.xml"))) rec.ReadXml(Server.MapPath("~/playlist.xml")); int id = int.Parse(r...

Is there a Delphi IDE plugin for XML file editing, validation, formatting?

Are there (free or commercial) IDE editor plugins for Delphi which show valid XML tags and parameters automatically while editing (like CodeInsight for HTML does it already) or suggest the correct closing tags, matching the current open tag? validate a XML file in the IDE editor against its XSD, or to check its well-formedness? format...

Send XML in a js variable to FusionCharts

Hi I have this php code which ends up with xml data in a string, I then use onClick to send it to a js function $strXML = "<chart><set label='B' value='12' /><set label='C' value='10'/></chart>" <td align='right' onClick='drawchart($strXML)' >&pound $totalcost </td> However when it gets to my js function it does not work and the dat...