xml

What does the ns attribute in the grammar tag of a RelaxNG schema do?

I can't seem to find any documentation on it that makes any kind of sense to me. I've noticed that it seems to relate to the xmlns attribute of the schema that is being validated. It looks like if the ns of the schema grammar tag and the xmlns of the root node of schema to validate don't match, I get a validation error. What is the ns...

query Using XPATH and then append child to it.

I have a xml file, and i need to append a child to it if a parent exists. So i used xpath to query for that specific node. $dom = new DomDocument(); $dom->load('testing.xml'); $xp = new domxpath($dom); $category = $xp->query("tree[@heading='something']"); Now i am not sure how to append a child to this result. The variable $category ...

java xmlbeans and marshalling special characters

Hey guys, I have a schema which I use xmlbeans to umarshal to java objects. I have no control over the kind of data that comes thru. One such field looks like <Name>Barnes & Noble</Name> Parsing fails at the character & with lexical error. Is there a way to specify an option while parsing xml files to ignore some special characters? ...

Searching NSString in XML database, Iphone

My project is like a classifieds kind of stuff.. I have a search text box in the first page. When the user enters some text in that, i need to compare that text to the XML file from where all the data are being recieved, and should list out all the advertisements in the Table View (next page).. I had did this kind of search in sql dat...

Parse controls in an aspx file and convert it to xml

Hi, I need to parse through the aspx file (from disk, and not the one rendered on the browser) and make a list of all the server side asp.net controls present on the page, and then create an xml file from it. which would be the best way to do it? Also, are there any available libraries for this? For eg, if my aspx file contains <asp:l...

Merge multiple XML files into one using PowerShell 2.0?

I have a directory of very large XML files with a structure as this: file1.xml: <root> <EmployeeInfo attr="one" /> <EmployeeInfo attr="two" /> <EmployeeInfo attr="three" /> </root> file2.xml: <root> <EmployeeInfo attr="four" /> <EmployeeInfo attr="five" /> <EmployeeInfo attr="six" /> </root> Now I am looking for a simple way...

Recursive xsl transformation

I have a xml document on the following format and want to transform it using a xsl template. I'm a beginner at xsl transformations and I only need to know how to recurse trough the tree but a solution to the whole problem would be nice. This is the xml document: <?xml version="1.0" encoding="UTF-8" ?> <nodes xmlns:xsi="http://www.w3....

XML to CSV Problem

Hi All, I am trying to convert xml to csv. I am facing problem to get child node (like ProdIDT, IDV) as one line a tab delimeted txt file. Child node value is coming close without header. Please look at the below my input and XSL file. XML <Product> <Record>1616200243</Record> <Not>03</Not> <ProductId> <ProdIDT>02</ProdIDT> <IDV>1616...

Excel Time format data getting converted to text value in XML

Hi, Thanks for viewing my question. This is basicaly excel I am working on **Shift Start Time Break 1 Time Lunch Time Break 2 Time Shift End Time** 7:00:00 8:30:00 12:00:00 14:30:00 16:30:00 when I am convertiong this excel to XML from my .Net code the time values in Xcl are getting conver...

recommened xml, xpath tools for J2ME

We are start working with J2ME application where we need the XML parsers based SAX, DOM and Xpath navigation support. I found kXML recommended by many developers. What are other free/open source libraries available you found useful and using in your application? ...

Set default context in Zend framework to XML

Hi there! I'm using Zend framework, and most of the action controller that I have return XML response. In order to do this, I have to initialize context switching and provide URL suffix "?format=xml" to call each action. Is there any way to make this default? So I don't have to add this suffix each URL? Regards, Andree. ...

Chrome says Cannot read property 'nodeName' of undefined, IE6 is fine, using Google Map API

I have an XML file in the following structure. <NewDataSet> <markers> <name>name text</name> <desc>desc text</desc> <Lat>57.149328033771</Lat> <Long>-2.12561060173764</Long> <cost>9985</cost> </markers> </NewDataSet> I'm using Google Map API to parse and map these, using the following Javascript. function load() { if (...

XML to CSV Problem (Child Node)

Hi All, I am trying to convert xml to csv. I am facing problem to get child node (like ProdIDT, IDV) as one line a tab delimeted txt file. Child node value is coming close without header. Please look at the below my input and XSL file. XML <Product> <Record>1616200243</Record> <Not>03</Not> <ProductId> <ProdIDT>02</ProdIDT>...

Force to load System.Xml assembly v. 2.0.5.0

Hi guys, I have got a problem with missmatching the assemblies - on the server site I need to use System.Xml assembly in version 2.0.5.0. How to force loading this assembly on the client site (2.0.5.0 is a Silverlight assembly). ...

How to get item's detail info(like attack power, agility..) from WOWARMORY?

I already know that parse the wowarmoy's xml to get the data. But there are some data that I can't find where to get. Like this url "http://www.wowarmory.com/item-info.xml?i=40155". <itemInfo> <item canAuction="1" icon="inv_jewelcrafting_gem_39" id="40155" level="80" name="Reckless Ametrine" quality="4" type="Orange"> <cost buyPrice...

Underscore not accepting in xml schema for email address

Hi I have created a schema and the following pattern to check for email id: \w+([-+._]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*. However it is not accepting email id's containing underscore like [email protected]. Can you please modify this pattern so that it accepts _ too. Thanks ...

Is there a library to evaluate MathML expressions?

Given some MathML content: <apply> <eq/> <ci>c</ci> <apply> <plus/> <ci>a</ci> <ci>b</ci> </apply> </apply> and std::map<std::string,std::double> cal; cal["a"] = 1.; cal["b"] = 2.; cal["c"] = 0; // does not matter what c is I wish to evaluate the MathML and retrieve the results. Is there a C/C++ library that ca...

Using a custom typeface in Android

Hi, I want to use a custom font for my android application which I am creating. I can individually change the typeface of each object from Code, but I have hundreds of them. So, Is there a way to do this from the XML? [Setting a custom typeface] Is there a way to do it from code in one place, to say that the whole application and all...

GetPrintCapabilities will not return all page sizes

Hi PrintCapabilities printCapabilites = SelectedPrinter.GetPrintCapabilities(); IEnumerable<PageMediaSize> pagesizeList = printCapabilites.PageMediaSizeCapability; The above code does not list all the page sizes that the printer driver supports and this is my problem. As an example if you use the Microsoft XPS printer driver you will...

Struggling to create SVG shape using JavaScript

Hi, I have already read the other questions relating to SVG creation using JavaScript and followed any links, but I can't seem to get this to work. Maybe somebody here can spot where I'm going wrong. EDIT: I currently have a div with the ID 'svgbasics' in the body of the document, and I'm trying to create an SVG shape using values I ha...