When you view a simple XML document in Firefox, it goes to the standard XML display mode, where you can collapse subtrees, etc. But it's pretty limited in functionality; there's nothing convenient like "expand all" and "collapse all" buttons, there's that annoying "This XML file does not appear to have any style information associated w...
I am using lxml to manipulate some existing XML documents, and I want to introduce as little diff noise as possible. Unfortunately by default lxml.etree.XMLParser doesn't preserve whitespace before or after the root element of a document:
>>> xml = '\n <etaoin>shrdlu</etaoin>\n'
>>> lxml.etree.tostring(lxml.etree.fromstring(xml))
'<e...
can someone please tell me why this xml formatting is incorrect and why my vb.net application does not want to read it?
http://sites.google.com/site/shadchanproject/Home/lots1.xml
is it OK to have an apostrophe between the tags? my vb debugger is saying:
Invalid character in the given encoding. Line 33, position 10. (this is where i p...
Is there a stronger reference?
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:nutch="http://www.nutch.org/opensearchrss/1.0/" xmlns
:opensearch="http://a9.com/-/spec/opensearchrss/1.0/" version="2.0">
<channel>
<title>Nutch: "php Developers" notdirectory:1 </title>
<description>Nutch search results for query: "...
Given the following XML file:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<head>
<title>Introduction</title>
<section>section</section>
<channel>testing/test</channel>
</head>
<body>
<h1>Heading</h1>
<p>Lorem ipsum dolor sit amet.</p>
<p>Donec sed enim.</p>
</bod...
this code was just working! but for some reason it stopped to work now. when i run this project the following code is supposed to execute but it does not! please help.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim xmldoc As New System.Xml.XmlDocument()
'Load from file...
Have a glance at this snippet of JSON.
Motivation: The JSON is generated by a REST service & later on will be
converted to XML.
Simple Question: I am currently embedding the map for the error codes inside the JSON snippet, with the intention of helping the transformation to XML. The XML format does not use numeric codes. Should I plac...
I am using a webservice which provides a large result set either in XML or JSON format.
Which format will be faster or better (perfomance based)? Also which language should I use to parse the XML/JSON? Should I use PHP or JavaScript?
...
Hi!
In a project using a MSSQL 2005 Database we are required to log all data manipulating actions in a logging table. One field in that table is supposed to contain the row before it was changed. We have a lot of tables so I was trying to write a stored procedure that would gather up all the fields in one row of a table that was given t...
I am using a webservice to get some results in XMl form... here is the part of the code
public function getXML()
{
$url=$this->constructURL();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec($ch);
if ($e...
I've written class to parse some xml into an object and it's not working correctly, when I try and get the value of a node I get a null rather than the contents of the node.
Here is a simplified version of my class that just does the xml parsing of a single node:
import java.io.File;
import java.io.IOException;
import java.util.ArrayLi...
What is the benefit of using attribute groups over attributes in defining an XSD Schema?
Ok... so I can declare them elsewhere and reference them...
What else?
...
How to save c++ object into a xml file and restore back?
...
I want to parse an XML using jquery. Is it possible to parse using XPath. is there any functions for that in jquery??
...
I have a XML structure somewhat like this:
<root>
<a/>
<b/>
<b/>
<a/>
<a/>
</root>
My XSD looks like this:
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element ref="a"/>
<xs:element ref="b"/>
</xs:c...
I have a schema (xsd), and I want to create xml files that conform to it.
I've found code generators that generate classes which can be loaded from an xml file (CodeSynthesis). But I'm looking to go the other direction.
I want to generate code that will let me build an object which can easily be written out as an xml file. In C++. I...
I have a table which stores comma separated values in an NVARCHAR(MAX).
I have created a view, which uses string manipulation to convert these comma separated values into an xml list. I can then use this Xml column access each item.
The queries on this column will benefit greatly if I could index it. However, on trying to create a Prim...
I have an XSD file with an enumerated type. I'd like to create an "extended" XSD file, which adds some additional enumerations, but otherwise behaves just like the main XSD.
For example, the main XSD file contains this:
<xsd:simpleType name="color">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="red"></xsd:enumera...
I'm writing a program to parse some third-party XML files. The structure is something like...
<CharacterSheet>
...
<StatBlock>
...
<Stat>
...
<alias />
...
</Stat>
...
</StatBlock>
...
</CharacterSheet>
I'm using this in to get some practice with linq, and I'm fining I have to write some really ugly chained querie...
How do I add a space in an XML schema element? I'd like to have "Last Name" without using an underscore. Thanks.
<xs:element name="Last Name" type="xs:string" minOccurs="0" />
...