Hi,
I am working on an iPhone OS application that sends an xml request to a webservice. In order to send the request, the xml is added to an NSString. When doing this I have experienced some trouble with quotation marks " and backslashes \ in the xml file, which have required escaping. Is there a complete list of characters that need to...
If I have Map setup like:
map.put("foo", "123");
map.put("bar", "456");
map.put("baz", "789");
then I want to do something like:
for (String key : map.keySet().toArray(new String[0])) {
// marshall out to .xml a tag with the name key and the
// value map.get(key)
}
So what it will marshal out is something like:
<map>
...
help im trying to write to a xml, here is my xml file.....please help
<item>
<entry>
<title>test</title>
<link>http://chuckjonescenter.org/blog_entry.php?blog_id=</link>
<pubDate></pubDate>
<description></description>
</entry>
</item>
...
Hi,
when using Python's stock XML tools such as xml.dom.minidom for XML writing, a file would always start off like
<?xml version="1.0"?>
[...]
While this is perfectly legal XML code, and it's even recommended to use the header, I'd like to get rid of it as one of the programs I'm working with has problems here.
I can't seem to find...
I am attempting to write an XML library file that can be read again into my program.
The file writer code is as follows:
XMLBuilder builder = new XMLBuilder();
Document doc = builder.build(bookList);
DOMImplementation impl = doc.getImplementation();
DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature("LS", "3.0");
LSSe...
I'm currently reading a regularly updated XML file with PHP (simpleXML).
I'd like to reduce calls to the remote server by reading a cache file on my web server, then after some time, retrieve a new copy of the remote file.
Is this an accepted practice for reading remote XML files, then parsing? Can anyone offer some suggestions on how ...
Here what I have.
System.setProperty(
"javax.xml.parsers.DocumentBuilderFactory",
"net.sf.saxon.dom.DocumentBuilderFactoryImpl");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
//factory.setNamespaceAware(true);
//factory.setIgnoringElementContentWhitespace(true);
//factory.setValidating(fal...
I am trying to assist users in migrating from a VB6 application to a C# application.
The VB6 app allows the export of data from an ADO (2.8) recordset via XML, but the C# application fails to read the XML producing the following error:
System.Data.DuplicateNameException: A column named 'name' already belongs to this DataTable
VB6 Code
...
In my case, I have:
<booklist>
<book id="1">
</book>
<book id="2">
</book>
<book id="3">
</book>
......
</booklist>
How can i just return:
<booklist>
<book id="1">
</book>
</booklist>
if I use /booklist/book[@id=1], I can only get
<book id="1">
</book>
But I also need the document element.
Thanks
...
I'm missing some fairly simple syntax I gather. I'm trying to rewrite an element label to something else and keep everything else intact.
object htmlRule extends RewriteRule {
override def transform(n: Node): Seq[Node] = n match {
case Elem(prefix, "document", attribs, scope, child@_*) =>
Elem(prefix, "html", attribs, scope...
Hi,
I have a question for my iPhone app.
I looking for a documentation for libxml2.
I have find more example for reading by XML, but my program must create a XML and i don't find anything (example or tutorial) for this.
I can create a XML with libxml2 or i must use NSXMLDocument?
Can you take me a example?
Thanks so much.
...
Suppose there is an element in XML data: <abc:xyz:name attr="value"/>
I'm trying to read it with XmlReader. The problem is that I get XmlException that says
The ‘:’ character, hexadecimal value 0x3A, cannot be included in a name
I have already declared "abc" namespace. I have also tried adding "abc:xyz" and "xyz" namespaces. But t...
Hi,
I have dowload a KissXml project.
I must add all the files to my project (excluding DDXMLTesting).
Sorry for the stupid question but i must insert all class in the classes folder (http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/) or i can do another operation.
Sorry but i'm a beginner programmer for iPhone.
...
I am trying the following, but the output XML is badly formed:
xml = Builder::XmlMarkup.new({:target => display })
xml.instruct!
xml.mail {
xml.documents {
xml.document {
xml.template {
xml.source "gallery"
xml.name "Postcard: Image fill front"
}
xml.sections {
xml.section {
...
Hi,
I Want to create a DTD schema for this xml document:
<root>
<student>
<name>
<firstname>S1</firstname>
<lastname>S2</lastname>
</name>
</student>
<course>
<name>CS101</name>
</course>
</root>
as you can see , the element name in the course contains plain text ,bu...
I have an XML file with format similar to:
<root>
<baby>
<a>stuff</a>
<b>stuff</b>
<c>stuff</c>
</baby>
...
<baby>
<a>stuff</a>
<b>stuff</b>
<c>stuff</c>
</baby>
</root>
And a Clojure hash-map similar to:
{:a "More stuff" :b "Some other stuff" :c "Yet more of that stuff"}
And ...
hello can you prvide an example how to parse xml file in adobe alchemy.
im trying to work on expat, however i got no luck on passing of bytearrays to
and from the c code.
do i need to pass the byte array of file to the alchemy, or is it enough to pass the filename.
thanks.
cbs
...
Hello, Could you please help me and say what kind of free eclipse plugins for editing xml is better?
Thanks.
...
Hi I have a problem reading escape characters inside an xml using XMLStreamReader.
for instance I have this element :
<a>foo&bar</a>
and when I read the value, everything after the & is truncated, and the value I get is "foo"
Any ideas how that could be fixed ?
...
I have WPF application and a window in it. Lets have something like this in my xml:
<Label Name="TitleLabel" Content="Some title" \>
<Label Name="BottomLabel" Content="{Binding ElementName=TitleLabel Path=Content">
Lets say I don't cannot use xml for creation of BottomLabel and TitleLabel. So I have to create the BottomLabel as a prop...