I parse in the XML using
from lxml import etree
tree = etree.parse('test.xml', etree.XMLParser())
Now I want to work on the parsed XML. I'm having trouble removing elements with namespaces or just elements in general such as
<rdf:description><dc:title>Example</dc:title></rdf:description>
and I want to remove that entire element as...
Hi,
I'm using the Xerces C++ DOM parser to read some XML files in a Visual C++ project. I have a class with a parse() method that is supposed to read and validate my XML source file. This is what the method looks like:
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/parsers/XercesDOM...
Hi
Using linq xml in c# how would I extract in for a given predecessor of SetSeg with a certain value in
Eg seatseg num =10 the following Seatassignment loc=??
<top>
<SeatSeg>
<Num>9</Num>
</SeatSeg>
<SeatAssignment>
<Loc>032A</Loc>
</SeatAssignment>
<SeatSeg>
<Num>1...
I'm wondering if/how the following can be accomplished in XSLT. If not, what would you use? (I used OmniMark, but I would like to know if this is possible in XSLT.)
Here's an example of the input XML:
<?xml version="1.0" encoding="UTF-8"?>
<fragment>
<firstElem>
<secondElem>D12</secondElem>
</firstElem>
<firstElem>
...
Hi guys,
I have the need to parse partial XML fragments (which are presented as std::string), such as this one:
<FOO:node>val</FOO:node>
as xmlDoc objects in libxml2, and because these are fragments, I keep getting the namespace error : Namespace prefix FOO on node is not defined errors spit out into STDERR.
What I am looking for is ...
It it possible for objective c to compile xml data (aiml files for example)??
I'm looking for it to compile AIML files then be able to "chat" with the files using objective c. Is there a XMLView or something??? Any ideas??
Elijah
...
I am trying to parse the keywords from google suggest, this is the url:
http://google.com/complete/search?output=toolbar&q=test
I've done it with php using:
'|<CompleteSuggestion><suggestion data="(.*?)"/><num_queries int="(.*?)"/></CompleteSuggestion>|is'
But that wont work with python re.match(pattern, string), I tried a few b...
How to represent the following data in XML format?
commandA ( a | b | c )
position = pos [(m | n | o )]
[space = space] [(m|n|o)]
[option1]
[option2 = "Hello"]
[option3]
Note:
[ ] --> denotes optional,
( ) --> denotes mandatory
| --> denotes anyone of the value
Eg:
commandA a position = 1.0<m> sp...
I'm attempting to pull information from the publicly accessible Recreation Information Database. The feed I'm trying to parse through is http://www.recdata.gov/feeds/RecElements/getAllRecElementsForOrgID_-1.xml (large file)
It seems that the feed is a complex xml document which looks like it has a lot of references to information simila...
HEllo,
IS touchXML a SAX parser ? what about NSXMLparser ?Somebody Please clarify.
...
hello folks.,
i have xml file which contains CDATA
i need to update the CDATA as like in this example.
i am modifying "span" here
<elements>
<![CDATA[-div[id|dir|class|align|style],-span[class|align]]]>
</elements>
should be updated as
<elements>
<![CDATA[-div[id|dir|class|align|style],-span[class|align|style]]]>
</el...
I like to use xml as interchange format between different databases. The xml format is standardized (xsd) and also the database schema is pretty fix.
My tasks now is to map between those worlds. Is there a kind of "mapper" to transform xml to sql databases in a bidirectional manner? I like something similar to the mapping files used in...
I'm using the following code to initialise an XmlDocument
XmlDocument moDocument = new XmlDocument();
moDocument.AppendChild(moDocument.CreateXmlDeclaration("1.0", "UTF-8", null));
moDocument.AppendChild(moDocument.CreateElement("kml", "http://www.opengis.net/kml/2.2"));
Later in the process I write some values to it using the followi...
The compiler produces error code
"1120: Access of undefined property master_mc." (bolded)
Anyone know what went wrong?
I followed a tutorial but there wasn't any explanation on how master_mc really works.
Please help make this script run properly.
Here's the link to the tutorial I tried.
var xmlRequest:URLRequest = new URLR...
<Item id="G1@MIT" type="GROUP">
<Item id="B1@MIT" type="BLOCKSEGMENT"/>
<Item id="S1@MIT" type="SWITCH"/>
</Item>
xml content above is an example of my xml data.
As you see I have Items that can contain other items.
My first question is how to define xml schema in this situation.
My second question is I want my id attribute to co...
Just a quick question.
Other than the way you manipulate them, are XMLDocuments and DataSets basically the same thing? I'm just wondering for speed issues.
I have come across some code that calls dataSet.getXML() and then traverses the new XMLDocument.
I'm just curious what's the performance difference and which is the best one to us...
Hello,
I am currently developing an RSS feed reader, and I am wondering which XML parsing API would be the best fit for that. (Please note that I am not looking for a Feed parser library - it is merely the starting point for that research about XML APIs)
I am looking for a rundown of the various XML parsing APIs on the Java platform, ...
I have to get certain nodes(their InnerText) from xml file. I know their names, but nodes might be using some namespaces which i don't know.
Is it possible to get node using SelectSingleNode() or some other method without knowing the namespace the node is using? Is it possible to ignore namespaces the nodes are using?
...
Hi,
Please see the code below. What I am trying to do is to store some PDF file names in XML format inside a database 'PDF_Storage' field. The code kind of works but is not polished enough: If there is no data for a row then I am putting a hard-coded xml file and then manipulating (Uploading new PDF; Deleting PDF) using a GridView contro...
My current problem could best be solved by an industry standard DTD or XSD describing restaurant menus. I don't think such an industry standard exists.
I'm hoping at least one organization has already published such a DTD/XSD, even if it's only for their own proprietary use.
My goals are to store a wide range of arbitrary restaurant me...