xml

XSLT PI and StyleSheet Parameters

Given an XSLT 1.x style sheet that requires parameters, is there any way to associate it with an XML document that specifies values for the parameters? I read the W3C spec document for the stylesheet PI and got left with the impression that the answer is 'no,' but I had a case of acute BNF poisoning by the time I was done, and thus might...

PHP: Create new XML file and write data to it?

I am needing to create a new xml file and write that to my server. So, I am looking for the best way to create a new xml file, write some base nodes to it, save it. Then open it again and write more data. I have been using file_put_contents() to save the file. But, to create a new one and write some base nodes I am not sure of the be...

How to pull data from xml (in iframe) ONTO parent w/ dynamic folders

After reading through nearly 100 posts on this site trying to find someone that asked something similar to what I needed I gave up and decided to just ask myself. Forgive the rest of this post as it will probably sound stupid to experts.. but here goes I am trying to set up a sort of "live demo" for css styles that I create. The idea is...

SQL Server xml copy values of one node to another

Hi I want to copy the values of one node to another in sql server(2005 and 2008). e.g if one of the xml data is as below <Data> <Name></Name> <ShortName>Joe</ShortName> </Data> the resulting xml should be <Data> <Name>Joe</Name> <ShortName>Joe</ShortName> the update statement should affect all the rows in the table appreciate a...

PHP: Create new node inside parent

I have a root XML node called and I am trying to add a new child called to this but I am getting errors. Inside there is also children. Here is my code: $xml = new DomDocument(); $xml->load(X_ASSETS); $xml->formatOutput = true; $new_id = $this->getNewAssetId(); // Root $xpath = new DOMXPath($xml); $asset...

C++ functions exposed to scripting system - self-describing parameter types

A C++ rules engine defines rules in XML where each rule boils down to "if X, then Y" where X is a set of tests and Y a set of actions. In C++ code, 'functions' usable in tests/actions are created as a class for each 'function', each having a "run(args)" method... each takes its own set of parameters. This works fine. But, a separate to...

Webpage loading in internet explorer problem?

Using CSS Style Sheet, HTML, XML When i run my website, my page was properly displaying in the firefox, but the page was not properly displaying in the internet explorer. Most of the people using only the internet explorer, but why my web page is not properly loading in the internet explorer. I have to change the setting of internet e...

Parsing XML, details and attributes, iphone

I'm not sure about parsing an xml with attributes. have seen a similar question here But it shows to get an attribute of intValue. But i need to get the attributes of string type,How to do that?? Images of xml and the relevant portions are given in the following links Click here for xml and here for required data ...

Do you know of a tool to turn an XSD definition of how classes will be marshalled to XML into a class diagram (UML?)?

I've been given an XSD file that describes how objects will be marshalled into XML. The XSD is complex enough that I can't keep it all in my head while trying to write some code to parse it (with SAX). What I'd like is some sort of tool that could turn this XSD definition into a class diagram. Do you know of any? Bonus points if it'll ...

What is the difference between Castor XML binding and JAXB binding

What is the difference between Castor XML and JAXB binding since both are binding java object to XML and vice versa. Updated : As using Castor I can do this Assume packageA.ClassA and packageB.ClassA have same attributes and class name just that they were located in different package. packageA.ClassA - > XML -> packageB.ClassA By ...

How to save content of a page call into a file in jsp/java?

Hi There, In jsp/java how can you call a page that outputs a xml file as a result and save its result (xml type) into a xml file on server. Both files (the file that produces the xml and the file that we want to save/overwrite) live on the same server. Basically I want to update my test.xml every now and then by calling generate.jsp th...

Read a zipped xml with .NET

Hi! The case: there is a large zipped xml file which need to be parsed by a .NET program. The main issue is the too big size of the file so it can not be loaded fully in the memory and unzipped. The file need to be read part by part in a way that after unzipping this parts they are "consistent". If a part includes only half of a node i...

xml parsing problem in iPhone

Hello, I have this xml feed in Chinese, which NSXLParsers is unable to parse. It gives error 31 while parsing. error 31 occur due to Document encoding is unknown. I tried UTF-8 and ascii encodings to convert string rendered via [NSString stringwithContentsOfURL:@"http://news.baidu.com/n?cmd=4&amp;class=finannews&amp;tn=rss"] to ...

Migration from MSXML to Xerces

I am planning to port my application from Windows to Linux, currently my application uses MSXML for XML parsing. I have decided to use Xerces XML parser to provide a cross platform solution. My code size is too big and I do not want to touch all the internal part of the code for this porting purpose as it might break some of the function...

php xml eacute error

hi,please help me here.i got this error <Name>secret CAKES &amp; CAF&Eacute; imited</Name> XML Parsing Error: undefined entity Location: http://localhost/xml.php in my php htmlentities($row['companys'],ENT_QUOTES) ...

Export to PowerPoint (*.ppt)

Hi all, do you have any idea how to export html/xml/json data into PowerPoint format in php? Tanks in advance ...

How XAML through binding listbox to norhwind database.

Hello every one Is there any sample that uses xml for binding listbox to the northwind database? For example I want to bind my listbox using northwind database,I have norhtwind.mdb file so how I can bind listbox in only xml please tell me thanks....... ...

XSLT : getting the prefix of an element ?

In XSLT 1.0, you can get the local name or the namespaceUri of an XML element using the functions: string local-name (node) and string namespace-uri(node) but is there a standard function to get the prefix of an element having a qualified name ? ...

xsl selectin nodes other than first node

HI, I want to select all nodes other than first node.My xsl and xml are like this but I am not getting the output for it. <Categories> <Category> <Title>Business</Title> </Category> <Category> <Title>Politics</Title> </Category> </Categories> my xsl <xsl:template match="Categories"> <xsl:variable name="restallTit...

Help getting started with XML -> HTML via XSLT

Hi, can anyone start me off with regard to converting some XML to HTML. I've worked on XSLT conversions before, but never from scratch, and I seem to be missing something. Starting with XML that's something like this: <order name="fred" value="123.45"> <lines> <line description="foo" value="123"/> <line description="bar" val...