xml

Is a file with 'xml' extension required to parse XML on a BlackBerry?

In my application I get a response from a web service which is in xml format. I am storing that response in a string and then would like to parse the string. Is it possible to do this or do I need to save the xml data into a file with 'xml' extension? ...

How to receive XML data produced by a website(webservice) in PHP?

Input is a URL like this http://ws.geonames.org/children?geonameId=6255148 and I would like to receive the XML file in a SimpleXMLElement for example? ...

JAXB workaround for Chameleon XSD imports?

Hi there, this is my first question, so please be gentle ;) I'm stuck with a weird problem. Essentially i get three XSD definitions like the following: PartA.xsd targetNameSpace="PartA" include="PartB.xsd" PartB.xsd <!-- no namespace definition!!! --> PartC.xsd targetNameSpace="PartC" inlude="PartB.xsd" import="PartA.xsd" The error...

Groovy: Handling large amounts of data with StreamingMarkupBuilder

Hello, The scenario is the following. I have a plain text file which contains 2,000,000 lines with an ID. This list of IDs needs to be converted to a simple XML file. The following code works fine as long as there are only some thousand entries in the input file. def xmlBuilder = new StreamingMarkupBuilder() def f = new File(inputFile)...

XSLT : Cannot convert the operand to 'Result tree fragment'.

Hello, I work on an xslt stylesheet, and I should receive as parameter two additional XML. I get an error when I use the node-set() method (from namespace ms, microsoft). The contents of the XML is correct. The parameters are send with classic ASP. Here's the header and the call in xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:styl...

Converting getNodeValue to a string

I asked a question here yesterday and it was kindly answered. However, I have taken the sample code and attempted to print out the value of the current node, i.e. using getNodeValue. Whenever I run the jsp it returns a "org.apache.jasper.JasperException: An exception occurred processing JSP page" error on "printOut = n.getNodeValue().t...

Select some but not all child nodes

I have the following XML structure: <?xml version="1.0" encoding="ISO-8859-1"?> <articles> <article id="1"> <title>Article title 001</title> <short>Short text</short> <long>Long text</long> </article> <article id="2"> <title>Article title 002</title> <short>Short text</short> <long>Long text</long> </arti...

XSLT include and document('') collision

I have two XSLT file A.xslt and B.xslt, where A.xslt includes B.xslt. A.xslt <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="my_namespace"> <my:data>This is A.xslt</my:data> <xsl:include href="B.xslt"/> <xsl:template name="my_template"> <xs...

Rails to_xml, use xml attributes instead of child nodes

I've been playing around with rail's to_xml, trying to create a really simple rest interface for a project i'm working on. So far, i've come up with cards = Card.all(:conditions => {:racedate => Date.today.to_s}) render :xml => cards.to_xml(:include => {:races => { :only => [:id, :number, :race_time, :name] } }, :skip_types => true, :...

Adobe Flex 4 XML validation against XSD

Is there any way using any of the standard XML tools or E4X tools in Flex 4 (Adobe Air WindowedApp) for me to validate an XML against an XSD schema I have created? ...

how to retrieve from xmldocment as xml node using linq

i like to retrieve datas from xml file using linq. i verified lot of examples ,all examples shows retrieved element in the form of XElement but retrieve in the form of XMLNode. is it possible to do like that else how can i convert XElement into xmlnode ,how can i do this.i need it in XMLBound Element not in XMLDocment. ...

XML 2 XML using XSLT

Hi, I learned about XSLT and XPath at w3schools,but it's not exactly what I wanted.. There are only examples about transforming XSLT 2 HTML, this is pretty easy,but I need a XML 2 XML transformation and can't find a good tutorial with examples...I downloaded MSXSL.exe but can't find exempls about using it to transform XML... Can anyone w...

How to check if the two XML files are equivalent with Python?

How to check if two XML files are equivalent? For example, the two XML files are the same even though the ordering is different. I need to check if the two XML files content the same textual info disregarding the order. <a> <b>hello</b> <c><d>world</d></c> </a> <a> <c><d>world</d></c> <b>hello</b> </a> Are there tools fo...

Parse XML with jQuery

I would need to parse this: <?xml version="1.0" encoding="utf-8"?> <blamatrixrix> <name></name> <columns number="2"> <column id="title" num="0">Title</column> <column id="content" num="1">Content</column> </columns> <rows number="7"></rows> <b>Description</c> <bDescription text here</b> <b>Some title 1</b> <b>Some text blabla for Some...

Insert an xml element from an xml doc to an other xml document

Let's say I have to xml documents: <first_root> <element1/> <element2> <embedded_element/> </element2> </first_root> and <foo> <bar/> </foo> How can I put this second xml doc into the first one, using php and DomDocument or SimpleXML? I want it to look like something like this: <first_root> <element1/> <element2> ...

force hyperjaxb2 to generate a fetch="select" propertie on hibernate mapping (on <join> tag)

We have found a problem on our application (a select query that join too much tables). The solution of this problem is to set fetch="select" on the <join> tag in our hibernate mapping file. <subclass extends="..."> <join table="MyTable" fetch="select"> ... </join> </subclass> But this mapping is generated by hyberjaxb2. I hav...

i need when i select item from listbox get the value of type tag to make check if the item string or integer

<Object Name="Suppliers"> <Fileds> <Field> <Name>Supp_ID</Name> <Label>سريال</Label> <Type>Int</Type> <Show>false</Show> <Compare>Equal</Compare> <HelpTag>SuppId</HelpTag> </Field> <Field> <Name>Supp_Name</Name> <Label>مورد</Label> <Type>String...

XSLT namespace axis seems not to work

I have the following xslt: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="my_namespace"> <xsl:template match="/"> <xsl:value-of select="document('')/xsl:stylesheet/namespace::my"/> </xsl:template> </xsl:stylesheet> ant it always returns an empty...

JAXB Namespace Order

Is it possible to control the order of namespaces in documents generated via JAXB? I know, it is not relevant to XML standards, but somehow we need to generate namespace declarations in specific order? For example, currently we have generated <rootelement a="http://www.example.com/xom" b="http://www.example.com/crops"&gt; .. </rooteleme...

Why insert-select to variable table from XML variable so slow?

Hi I'm trying to insert some data from a XML document into a variable table. What blows my mind is that the same select-into (bulk) runs in no time while insert-select takes ages and holds SQL server process accountable for 100% CPU usage while the query executes. I took a look at the execution plan and INDEED there's a difference. The...