So I have an XML file that I am trying to loop through in order, according to the attribute, "order".
Here is an example:
<page>
<talentTrees>
<tree name="Football" order="2">
<tree name="Baseball" order="0">
<tree name="Frisbee" order="1">
</talentTrees>
</page>
My goal is to loop through each "tree" using foreach, but I want to rea...
Hey, I was wondering if anybody knew how to alter the following XSL stylesheet so that ANY text in my transformed XML will retain the carriage returns and line feeds (which will be \r\n as I feed it to the XML). I know I'm supposed to be using in some way but I can't seem to figure out how to get it working
<xsl:stylesheet xmlns:xsl=\...
I'm using a Serializable Dictionary code object. For some reason when I serialize the object in a SOAP web service the the string object serializes with a blank namespace. I cannot get it to go away.:
XmlSerializer valueSerializer = new XmlSerializer(typeof(TValue));
foreach (TKey key in this.Keys)
{
writer...
Hi!
I'm building an application in the iPhone where the communication with a PHP server is needed (using XML).
I'm able to receive data from the server and I handle the xml file using the NSXML parser.
I haven't found too much documentation about sending data from the iPhone to the server (via XML).
Any idea, links, and examples w...
I have a page that will basically be used to concatenate a bunch of xml files, it will act as glue that binds them together. There's a small chance the xml files that are being combined might not be well formed because the user will have access.
I'm trying to basically rewrite a live file if there are no warnings / errors thrown in a sp...
Is there any sort of xml reference?
I found this which turned out to be invaluable for me
http://groups.google.com/group/android-developers/msg/d334017d72909c79
but I can't figure out how I was supposed to know how to do that, had
I not found that post.
I know that the api reference has xml attributes listed for many of
the classes......
I see that there is a few of XML processing libraries in Haskell.
HaXml seems to be the most popular (according to dons)
HXT seems to be the most advanced (but also the most difficult to learn thanks to arrows)
xml which seems to be just the basic parser
HXML seems to be abandoned
tagsoup and tagchup
libXML and libXML SAX bindings
So...
i have an xml file sitemap.xml as shown below ..i need to add one more
tag here after <Name> tag..Means After <Name>test</Name> tag here
i need to add destination tag like <Destination>NY</Destination>
.Can we add contents to xml through a textbox by pressing a button
control without manually doing
this is xml file sitemap.xml
<?xm...
I am using dom->createTextNode() in PHP. I see that it automatically escapes characters e.g \/"" etc. According to the PHP's manual this is a standard behavior.
Is it possible that it doesn't escape any characters?
Thanks.
...
Anyone can tell me which one is better (JAXB or Apache XMLBeans) taking in account the performance for files bigger then 10Mb?
...
Hi, at the moment I'm trying to implement a method in which the server creates an XmlDocument object and sends it to the client (using AJAX) which then stores the object as a var.
I wished to send that variable from the client back to the server but when the server receives it, it's no longer recognised as an XmlDocument object, instead...
I am querying the Microsoft Office SharePoint Server Search Service to write some results into a web part. I have the query working correctly but am having some trouble parsing the xml response via JQuery.
Below is the XML response
<ResponsePacket xmlns="urn:Microsoft.Search.Response">
<Response domain="QDomain">
<Range>
<StartAt...
Hi All,
I have somehow managed to break my infopath form :( When I try to open it (both preview mode and design mode) I get the following error:
InfoPath cannot open the following form D:\infopath\formname.xsn. The form definition (.xsf) file contains errors.
When I click on more details I get this:
The form definition (.xsf) file c...
Hello
I have this code
<?PHP
$content = '<html>
<head>
<title></title>
</head>
<body>
<ul>
<li style="border:0px" class="list" id="list1111">
<a href="http://www.example.com/" style="font-size:10px" class="mylinks">
<img src="logo.gif" width="235" height="...
I need to open an XML file exclusively, make a modification, and save it.
I can open it and make the modification pretty easily like so:
DataSet ds = new DataSet();
ds.ReadXml(filename);
DataTable table = ds.Tables[0];
DataRow[] rows = table.Select("Inventory== 1");
DataRow row = rows[0];
row["Inventory"] = "2";
ds.WriteXml(filename)...
I have a DLL which I (for many reasons) cannot change. I use this assembly to retrieve a an XPathNodeIterator.
I know I can sort XML with an XPathExpression on an XPathNavigator to get an XPathNodeIterator, the problem is that I start from the XPathNodeIterator is there any way to apply a sort afterward?
...
I'm having troubles reading values from an xml file.
Here is the xml file:
<root>
<defaultGroups name="Sikker">
<group name="0ASK" />
<group name="0ASKAPP" />
<group name="0ASKFELLES" />
<group name="0SYSAPP" />
<group name="0SYSAPPoffice" />
<group name="10WTS" />
</defaultGroups>...
Hi I am looking for a simple URL & title extractor from html files in Java. I am trying to parse bookmarks.html (IE,Firefox) etc and add the title & url to a db. I need to do this in java (no 3rd party libraries allowed) so proably I have to use sax/dom/regex.
...
I am getting this error when I try to view my dynamically generated (PHP) XML document:
XML Parsing Error: junk after document element
Location: http://dev.leisurepublishing.com/vtc/master.xml.php
Line Number 17, Column 1:
^
I have googled and looked through the document and I can't figure out what's wrong, can someone help me spot the...
I was curious as to whether or not there exists a jQuery-style interface/library for PHP for handling HTML/XML files -- specifically using jQuery style selectors.
I'd like to do things like this (all hypothetical):
foreach (j("div > p > a") as anchor) {
// ...
}
print j("#some_id")->html();
print j("a")->eq(0)->attr("name");
...