All,
I have an XML document that looks something like this:
<root>
<profile>
<childA>
<childB>
<childC>
<profile>
<blah>
<blah>
<foo>
<bar>
<root>
I'd like to be able to grab the 'profile' node, then iterate through it's children ('childA', 'childB', etc)
So far, my code looks like this:
$doc ...
I have a "parent" Obj-C object containing (in a collection) a bunch of objects whose instance variables point to one another, possibly circularly (fear not, no retaining going on between these "siblings"). I write the parent object to XML, which of course involves (among other things) writing out its "children", in no particular order, a...
Hi All,
I am writing a PowerShell wrapper for an existing Perl script. The Perl script is fed a couple of parameters and goes off and configures all our HP iLO devices for us, and returns the results in an XML format. The problem is the result comes out as one big blob of multiple XML statements ie:
$strResult = & "perl locfg.pl -s $il...
I'm making a CRUD "layer" for an application.
This will be a simple CRUD application that, for example, stores User information, Favorite links etc. and not do operations on "fact-type" data. It's actually only to store things like Users, Permissions, Rules, Policies etc. that other parts of the application pick up to perform work.
Over...
I'm going to create a converter from html to some format.
I'm thinking to use intermediate format XML(XSL-FO).
My question: Why is FO format popular if not so many applications render it?
...
What is the difference between using xsd:unique and xsd:key?
...
I really need help with finding a program which will allow me to edit xml.gz files. To be honest I'm not even sure what a xml.gz file is for that matter. If it's a compressed xml file then I would also like to ask how to compress a xml file. So to sum it up I'd like to know some program suggestions and an explanation about xml.gz files.
...
At the beginning i wrote a c# class. Then i created a schema for the class with the “xsd.exe” tool. I posted this schema into the schema collection of my database and created a new xml column:
CREATE XML SCHEMA COLLECTION AppointmentSC AS 'its impossible to insert a schema here in the forum'
GO
ALTER TABLE Adresse ADD xmlAppointment XM...
I have a following XML:
<person xmlns:a="http://example.com" xmlns:b="http://sample.net">
<a:fName>John</a:fName>
<a:lName>Wayne</a:lName>
<b:age>37</b:age>
</person>
How do I define XML serialization attributes on a class to support described scenario?
...
A related node here was - http://stackoverflow.com/questions/152313/xml-attributes-vs-elements
but that was more a design question.
My question is about validity.
If a schema requires
<record name="foo" description="bar" />
and I supply
<record>
<name>foo</name>
<description>bar</description>
</record>
Will the XML be conside...
Hi,
We have an application that uses XML to load data on 8900 BB device. Everything is running well on Simulator, all relevant data load. But on device we get a black page and nothing loads. Can anyone help us find the problem? Maybe that's because we don't sign the app?
We managed to load data only after we set APN in device network s...
How do I validate XML document via compact RELAX NG schema in Python?
...
How do you retrieve a comment from an XMLElement using Linq in VB? For example:
<MyXML>
<event type="MyEvent" uid="3">
<start>2009-02-01T12:00:00</start>
<stop>2009-02-01T12:00:30</stop>
<New>1</New>
<x>20</x>
<y>60</y>
<!--Whatever-->
</event>
<event type="MyEvent" uid="3">
<start>2009-02-01T11:00:00<...
hi friends,
How create XML from XML using XSL ?
I try like this.. but i not get a result
Test.xml
<Address>
<name> Alex</name>
<lastname>Mathew</lastname>
</Address>
Test.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
...
After reading the book RESTful Web Services by Leonard Richardson and Sam Ruby, it seems to me, that the to_xml method of rails is not as restful as it should be. Specifically, the book introduces the Resource Oriented Architecture, one of the tenets of which is connectedness: Representations of a resource should contain not only the dat...
Hi There,
I have an application which has been running happily under Java 1.5 for around a year. We've just had the boxes updated and had Java 1.6 installed.
After deploying the app to the new server we've found the application is throwing an exception when it tries to transform some XML. We couldn't understand why this was happening u...
Hi guys,
I am using Linq To XML to create XML that is sent to a third party. I am having difficulty understanding how to create the XML using Linq when part of information I want to send in the XML will be dynamic.
The dynamic part of the XML is held as a string[,] array. This multi dimensional array holds 2 values.
I can 'build' the ...
I'm currently using the code below to attempt to check for a certain root node (rss) and a certain namespace\prefix (itunes), but it seems to be saying that the feed is valid even when supplied with a random web page URL instead of one pointing to a feed.
FeedState state = FeedState.Invalid;
XmlDocument xDoc = new XmlDocument();
xDoc.L...
I'm creating an (desktop) application with flex but AIR is not an option. (I've heard you need air-installer to play the .exe) My flex app needs to load a php generated xml but it has to run from the swf file when you export a release build.
When testing my flex application on the localhost, everything is fine. The xml is loaded and I ...
I have an XML file of the following form -
<map MAP_XML_VERSION="1.0">
<entry key="database.user" value="user1"/>
...
</map>
Does ant have a native ability to read this and let me perform an xquery to pull back values for keys? Going through the API I did not see such capabilities.
...