I am using an XMLTextWriter to create an XML document dynamically (in VB.Net).
I want empty tags to appear like this - <Tag></Tag>
and not this - <Tag />
So, I am using WriteFullEndElement to end the element tag. But it is writing out the tag as -
<Tag>
</Tag>
i.e. with a newline character between the tags. The web service reading t...
Hi,be m
I am working on an application which has below requiements -
1. Download a ZIP file from a server.
2. Uncompress the ZIP file, get the content (which is in XML format) from this file into a String.
3. Pass this content into another method for parsing and further processing.
Now, my concerns here is the XML file may be of Huge si...
Hi,
I've been reading a ton about xml and learning a lot but I am stuck on one error.
I have a schema defined in multiple files and I can't get it to work. Here is an example
==================================
libraryBooks.xsd
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns...
I have a method which returns some xml in a memory stream
private MemoryStream GetXml()
{
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
using (MemoryStream memoryStream = new MemoryStream())
{
using (XmlWriter writer = XmlWriter.Create(memoryStream, settings))
{
...
Hello,
I am trying to use multiple entries with Zend_Config_XML, but no luck so far. I have the following structure.
<acl>
<admin>
<access moudle="module1" controller="controller1" action="action1">
<access moudle="module2" controller="controller2" action="action2">
<access moudle="module3" controller="controller3" action="...
geonames.org got a web api you can use to get all the hierarchy for a city.
you just enter the id and you will get the data back in xml.
http://ws.geonames.org/hierarchy?geonameId=2657896
i wonder how you fetch the url with php and javascript, and which one should i use.
cause the id's are in the mysql database. i will get them wit...
Hallo,
I need to send a request to a page (POST) and then, I will read the XML and take the logical action.
How can I best send from my PHP request and then read the response.
Thnkas.
...
Anyone know of a way to find out the amount of memory/size of a XMLDocument once it has parsed a XML file? I've been doing "beer mat" calculations so far but have been asked to come up with some more legit numbers through monitoring some how.
I need to create about 1500 XML files (via FreeThreadedXMl-DOM object), which verge between 3-9...
I'm trying to append a string of svg elements to the dom. This is my setup.
var oFragment = '';
for (var i = 0; i < 10; i++) {
oFragment += '<g><path id="note-'+i+'" d="M 6,3 84,6 c 0,0 -6,76 14,91 L 58,97 19,89 c 0,0 -24,-5 -13,-86 z" style="fill:#ffc835;" /></g> ';
}
Here is what i tried. It gives the following error: "parseXML i...
Hi currently I have a nested XMl , having the following Structure :
<?xml version="1.0" encoding="utf-8" ?>
<Response>
<Result>
<item id="something" />
<price na="something" />
<?xml version="1.0" encoding="UTF-8" ?>
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://pur...
I have an existing data model. I would like to express this data model in terms of XML.
It looks like I have two options if I'm to use JAXB:
Create an XSD that mirrors my data model, and use xjc to create binding objects. Marshalling and unmarshalling will involve creating a "mapping" class that would take my existing data objects a...
Assuming you have two lists defined in an xml schema, call them A and B, is there a way to say A must be one or more items and B must be the same length as A?
...
I need to get a XML File into a Database. Thats not the problem. Cant read it, parse it and create some Objects to map to the DB. Problem is, that sometimes the XML File can contain namespaces and sometimes not. Furtermore sometimes there is no namespace defined at all.
So what i first got was something like this:
<?xml version="1.0" e...
1st I have to say I know nothing bout php. I was actually doing my AS3 guest-book and through parts of tutorials from Activetut, I managed to come out a flash guest-book. So the problem now I'm facing is the guest-book could only inject 1 XML data and it will always clear off the old 1, while the flash is still caching on the old XML fil...
Is it possible to determine the feed type and version in a way so that you can make sure that you have the correct version. At the lowest level so to speak. Namespaces is an obvious approach, but its not present for a lot of feeds.
Any thoughts?
(I'm trying to mashup varioius RSS Feeds).
Thanks in advance for any help!
...
Hi!
I'm building a simple application. It's a user interface to an online order system.
Basically, the system is going to work like this:
Other companies upload their purchase orders to our FTP server. These orders are simple XML files (containing things like customer data, address information, ordered products and the quantities…)
I...
I am usin the nsxmlparser and am wondering how I can parse ISO-8859-1 correctly into an NSString.
Currently, I am getting results w/ Â for two-byte characters.
The XML I'm using (not created by me) starts with <?xml version="1.0" encoding="ISO-8859-1"?>
Here are the basic calls I'm using (omitted the NSThread calls).
NSString *xmlFi...
HI...I'm making a project and the program receives info about people, how can i save all info to XML?
...
I'm trying to use NSXmlParser to parse ISO-8859-1 data. Using Apple's own example for parsing ISO-8859-1, I have the following.
// path to xml file
NSString *xmlFilePath = [[NSBundle mainBundle] pathForResource:sampleFileName ofType:@"xml"];
// string of xml contents
NSString *xmlFileContents = [NSString stringWithContentsOfFile:xmlFil...
I have a document that looks something like
<root>
<element>
<subelement1 />
<subelement2 />
</element>
<element>
<subelement2 />
<subelement1 />
</element>
</root>
In my XSLT sheet in the context of /element[2]/[someNode] I want to get a number that represents the distance of /element[1...