Say I have this XML
<doc:document>
<objects>
<circle radius="10" doc:colour="red" />
<circle radius="20" doc:colour="blue" />
</objects>
</doc:document>
And this is how it is parsed (pseudo code):
// class DocumentParser
public Document parse(Element edoc) {
doc = new Document();
doc.objects = ObjectsParser.pars...
I need some assistance converting an xml document to a CSV file using an xslt stylesheet. I am trying to use the following xsl and I can't seem to get it right. I want my comma delimited file to include column headings, followed by the data. My biggest issues are removing the final comma after the last item and inserting a carriage retur...
I need to update an XML document stored in a Microsoft SQL Server database, however the vendor of the product chose to store the XML in a TEXT column.
I've been able to extract the TEXT into an XML-type variable and perform the update I need on the xml within this variable, but when I try to UPDATE the column to push the change back to ...
Given a very basic xml structure and a generic Object declaration with a property already defined (location), how can I add the nodes of the xml structure (id & name) to the object's properties without statically referencing the names of the nodes?
XML:
<record>
<id><![CDATA[SS001]]></id>
<name><![CDATA[SubstationName]]></name>...
Currently, a friend of mine is wanting a Flash Gallery and the ability to upload files. I don't have the time of day to teach him where to edit the XML properly or dare I even give him FTP access.
He hand picked out this gallery program: http://flashnifties.com/xml_gallery.php Which as you can tell works off XML.
Creating a script to h...
Hey friends,
quick question: I need to transform a default RSS Structure into another XML-format.
The RSS File is like....
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Name des RSS Feed</title>
<description>Feed Beschreibung</description>
<language>de</lang...
Hi ppl,
I need a clarification on one of scenarios of <xsd:any>.
What if namespace attribute's value is ##any and the attribute processContents doesn't exist (the default value is strict)?
What will be the case here, Should the processor validate the elements against any schemes!?
Ex for clarification:
Here's XSD section:
......
<xs...
I want to use Python to make a configuration file generator. My roughly idea is feeding input with template files and some XML files with the real settings. Then use the program to generate the real configuration files.
Example:
[template file]
server_IP = %serverip%
server_name = %servername%
[XML file]
<serverinfo>
<server ip="x....
I have an XML file located at a location such as
http://example.com/test.xml
I'm trying to parse the XML file to use it in my program with xPath like this but it is not working.
Document doc = builder.parse(new File(url));
How can I get the XML file?
...
I'm trying to create a database of World of Warcraft gems. If I go to this page:
http://www.wowarmory.com/search.xml?fl[source]=all&fl[type]=gems&fl[subTp]=purple&searchType=items
And go to View Source in Firefox, I see a tonne of XML data which is exactly what I want. I wrote up this quick script to try and parse some of i...
When you first use a name from the android XML namespace, you have to say where to find it, with an attribute in XML like this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
However, that URL is a 404 - nothing found there.
The android: namespace is actually included under the locally-installed SDK.
So wha...
hi all..
i have a address.java file with a textField as PostCode. in that only number should accepted. if i try to enter characters in that it sould popup a message.
these validation must be done in address.xml file only
i tried by giving the validation as
<testcase>
<messageType>error</messageType>
...
Hello,
I have been doing a lot of work with WCF "self" hosted applications. I recently was requested to write a web service where the calling client was a Linux based program named "WGET". I would like to use WCF instead of a traditional ASMX web service. The web service is returning a standard XML response. I am not sure of the underli...
I have an XML document which reads like this:
<xml>
<web:Web>
<web:Total>4000</web:Total>
<web:Offset>0</web:Offset>
</web:Web>
</xml>
my question is how do I access them using a library like BeautifulSoup in python?
xmlDom.web["Web"].Total ? does not work?
...
I having an XML file and that file is under the Documents folder.
If I actually give the entire path in C# then I am able to retrieve the XML values, but if I give the project path then it is not getting the values.
For example:
string fileNamePath=ConfigurationManager.AppSettings["XMLDocPath"].ToString() + fileName;
m_xmld.Load(fileN...
I am using Jquery in my J2EE application. I am still using XML to get pass and get the data from the server. My client side code is very vague to see. Is it better to move from XML to JSON ?
...
I have one application, in that i am using a datarow object like this.
DataRow[] drRow;
drRow = _dsmenu.Tables["tblmenu"].Select("id='" + DocID + "'");
After this i make some changes in columns like this
drRow[0]["Allow"] = "Yes";
after all the changes, i need to save that particular datarow as a xml to the db.
I ca...
My page use to validate for XHTML but I added the addthis buttons to page and it gives a new namespace:
E.G.:
<a addthis:url="http://domain.tld/path/to/stuff" addthis:title="Teh Title here">
I tried:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:addthis="http://addthis.com/" lang="en">
Doesn't work.
Can we register namespac...
Hi,
Need help here. Am not able to replace the '&' with '&' uses Preg_replace in PHP. But, if I do it manually (edited) on the xml file, it works out fine.
Here are the sample:
$XMLCharactersPreg = "/[&<>\"\'()^*@+]/";
$XMLPregReplace = "&";
$d_Description = "50% offer & 20% further reduction for member";
if (preg_match($XMLChara...
<EssenceList>
<Essence GUID="464">
<Properties>
<Property Name="Name">
<value>mt-1232-1. (1-1-3)</value>
</Property>
</Properties>
<Characteristics>
<Characteristic GUID="78">
<value>gadget</value>
</Characteristic>
<Characteristic GUID="79">
<value>measures</value>
...