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...
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...
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...
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...
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...
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...
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...
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
...
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 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 ...
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...
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...
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&class=finannews&tn=rss"]
to ...
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...
hi,please help me here.i got this error
<Name>secret CAKES & CAFÉ
imited</Name>
XML Parsing Error: undefined entity
Location: http://localhost/xml.php
in my php
htmlentities($row['companys'],ENT_QUOTES)
...
Hi all,
do you have any idea how to export html/xml/json data into PowerPoint format in php?
Tanks in advance
...
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.......
...
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 ?
...
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...
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...