xml

Is it possible to create an xsd that supports a parent node and child node having the same name?

So before anyone tells me I shouldn't do this, I completely agree. However I have an xml DataFeed coming in from a third party. I already am reaching out to them to see if they can change it, but I figured I had better attack it from both sides. The offending tags in the XML are as follows: <Tags> <TagDimension id="Topic"> ...

Write Serialized XML String to XML File

I have a decrypted XML string which was sent over the wire to the receiving box where my code resides. Now, I want to write this XML string to an XML file. Here's the Decrypt method which my code calls to generate this XML string... maybe this needs to be changed? [Update]: My problem is that I can't see a way to write/create an XML f...

How to parse xml and loop through it from a string ?

I want parse xml by looping through it. I referred this but I am not able to parse it using the Load function since it expects an URI parameter and not a string and so does LINQ to XML....Can anyone help me out ? ...

Anyway to use XML layout files for specific View/ViewGroups?

I have a custom View that I'd like to specify the layout of in an XML file rather than through code, is there anyway I can take an Android XML layout file and use it to flush out my custom View's content? I know it can be done in an Activity via the setContentView method, but there doesn't seem to be a similiar method for Views. Thanks...

saving and reading a xml file getting from the other url

Hello guys this is my code // build query string $searchUrl = "http://www.dezrez.com/DRApp/Search.ASP?WCI=Results&amp;GType=" . $_POST["GType"] . "&EAID=" . $_POST["EAID"] . "&perpage=" . $_POST["perpage"] . "&StyleSheet=" . $_POST["StyleSheet"] . "&xslt=" . $_POST["xslt"] . "&priceOrder...

Unable to parse self closing xml tag

I have a very unusual problem. I am using NSXMLParser to parse XML but it is not being able to parse self closing tags! If the XML is something like "< media:something ....... / >", when I parse it and output the elementName in didStartElement: method, there's no output for the particular tag. All other tags which are not self closing a...

Query all XML files in a directory from SQL Server

Given a folder full of simple XML documents that all have the same structure, is there a quick way to either load all the documents into a temporary table or treat the folder as a table, in order to query the documents with the SQL 2005 XML query syntax? The bulk load examples that I have seen, all try to parse the XML document while lo...

Using XSL to sort XML data then output an XML file to be read by Classic ASP

Hi, Hopefully this will be a simple fix. I'm completely new to XSL but I've managed to get a little script that sorts my data by date. I now want to use ASP to limit this data to all entries within a month (this works by using a DateDiff() function). When I go to load in the XSL scripts output it says that my XML is malformed. Can anyon...

Pivot XML using XQuery and filter on attribute

Given the following XML (in an SQL column field called 'xfield'): <data> <section> <item id="A"> <number>987</number> </item> <item id="B"> <number>654</number> </item> <item id="C"> <number>321</number> </item> </section> <section> <item id="A"> <number>123</number> </item> ...

Encountered java.io.FileNotFoundException while parsing a rss feed in java

hi I couldn't figure out the reason why i get this error while i try to parse an feed using sax parser.The code is simple and it has been an working code for many other url's. try{ String myurl="http://news.google.com/news?ned=us&amp;topic=n&amp;output=rss" SAXParserFactory spf = SAXParserFactory.newInstance(); ...

Linq to XML setting XElements from arrayList?

I am trying to set XElements with an ArrayList and having a bit of trouble. I basically want to be able to do a foreach loop, but not sure where I need to insert it. ArrayList cities = new ArrayList(); foreach (ListItem item in lstCities.Items) { cities.Add(item.Text); } new XElement("Cities", cities //not sure what to do here ...

XML data bases and ORM

Hello, A few years ago I used the Hibernate ORM for mapping database data to the objects and manipulate it. Currently I have xml database and the next question, Is there orm for the xml databases or something like this? It is my mistake I did not put technology, I need ORM for .net. ...

disable html element in php if it exists

how do i disable an html element after checking in php if it exists? in other words, after the data has been inserted into the xml file the first time, the html textbox elements should be disabled, so that the user does not enter any more information in that textbox. is this possible? the code checks if the element exists, and if it do...

How to change a property field in a xml file with java

I hava an xml file in the hard disk.I want at run-time my java application to change a property of the xml file.I just wondering which is the fastest and more lighter procedure? 1)parse the xml file with DOM 2)set the property value in a new document in memory 3)write the new document with the new property value back in the same file. Th...

using xsl displays nothing

i'm trying to implement an xsl file to an xml doc. however when i do so, it displays nothing. if i remove the reference of the xsl from the xml file, the data at least is displayed. this is the xsl code: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:temp...

Java - Get child nodes as a string

Is it possible to get the child nodes under an xml element/node as a string in Java? Or do you have iterate through everything? Thanks, Andez ...

How do you export a JQGrid configuration to XML?

I have a number of users that need to save off very specific table configurations, which are to be loaded each h time they visit my application. How would I go about exporting my JQGrid column configuration to XML so that it can be loaded later. ...

Python XML and XPath to sort things out

Let's say I have an XML as follows. <a> <b> <c>A</c> </b> <bb> <c>B</c> </bb> <c> X </c> </a> I need to parse this XML into dictionary X for a/b/c and a/b'/c, but dictionary Y for a/c. dictionary X X[a_b_c] = A X[a_bb_c] = B dictionary T T[a_c] = X Q : I'd like to make a mapping file for this in XML file using XPath. ...

Does it exist: context aware, autocompleting, XML editor with API for including into my app

I need an API-addressable, Java-based XML editor that is context aware. For instance, if you give the editor a schema for the XML document that is supposed to be generated, then, as the user is editing the XML, they will have access to recommendations and autocomplete for XML elements and attributes. ...

paging xml data

how do i implement paging on xml data which is being called through php. i've been trying various jquery pagination on the xml file with no luck. html/php code reading the xml data: <div id="display"> <?php error_reporting(E_ALL); ini_set("display_errors", 1); $xmldoc = new DOMDocument(); ...