xml

jQuery parse xml not returning data in ie

I am parsing an xml file after a ajax call to 'get' the xml file. I am trying to return one of the nodes (using the find method). however it will not return the value in ie - fine in firefox. i am doing a alert to test the value and it just comes back blank. Below is the code: function autoFeedGetter () { $('#notifyBox').empty(); $.a...

How to read CDATA XML Content

I have the following xml file: <?xml version="1.0" encoding="utf-8"?> <root> <phrase id="test"><![CDATA[test]]></phrase> <phrase id="test0"><![CDATA[test0]]></phrase> <phrase id="test2"><![CDATA[test2]]></phrase> <phrase id="test3">test3</phrase> <phrase id="test4"> <![CDATA[test4 LINEBREAK]]> </phrase> <phrase id="test5"> LINEB...

How do I map XML sequences to Excel columns?

I'm new to XML. What I have is a load of XML from Adobe Illustrator which I'm trying to map excel data onto. I have sequences in the original data which look like this <Market_Pie> <datanumDataColumns="5"> <values> <row> <valuekey="name"></value> <value>503.931</value> <value>268.301</value> <value>285.561</value> <value>152.037</value>...

XML in html div?

I have put some xml-fragments in a div and retrieve it with getElementsByTagName. It works fine in Firefox but Internet Explorer ain't so nice... What should I do to fix this? var thumbnails = content.getElementsByTagName("thumbnails"); for (var i = 0; i < thumbnails.length; i++) { thumbnails[i].innerHTML ...

How to embed xml file into java package and access it?

I have a XML file with data that is used in both my C# and Java version of a library. Ideally I want to embed this XML file in a package in that library. I only need to access it from within my library, so I was wondering: is that possible? ...

Java XML Serializing, Missing fields in file

Hi there this is the issue at hand, when trying to serialize the class below with the code below i'm getting is the below xml file without all the strings in the class. The Class (some static values have changed but basically it), I left out all the generated get\set but they are all there with public access modifiers. public class Not...

Magento: Multiple calls to same block template with cache on

Hi all, I am calling a block multiple times in the footer of my site as follows: <reference name="footer"> <block type="catalog/navigation" name="footer.category.occasion" as="cat_occasion"> <action method="setTemplate"><template>catalog/category/menu.phtml</template></action> <action method="setData"><name>categor...

How to create an OpenOffice document in .NET

I am starting to write an application that will output an OpenOffice document. The content.xml file in an empty ODT document begins: <?xml version="1.0" encoding="UTF-8"?> <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xml...

Writing viewing stats to XML file. Possible problems with losing data count?

Hello I have created XML which holds codes for properties and number of page viewings for that code: <?xml version="1.0" encoding="utf-8"?> <data> <nehnutelnost code="BSPO066P">35</nehnutelnost> <nehnutelnost code="PMDM029P">4</nehnutelnost> </data> I think I have found possible weakness with this, today all counters disapea...

Flex/AS3 incompletely decoding WSDL XML on one particular operation. How on earth do I remedy this?

I am currently consuming a WSDL in Flex, that is on the back-end served by .NET. ALL of the operations seem to work fine, except one, whose result object is not being properly parsed by AS3 for some odd reason. I have inspected the response XML in Fiddler/Charles and the data is there, but in NOT in the result in the Flex variable inspec...

XML to String value

I use an XMLWriter to manually make an XML document. Is there a way to put that in string form so I can write it to my DB? I am coding in VB..Net ...

How do I create a shallow copy of an object so that it may be serialize and sent via a web method call?

I would like to serialize the properties of the HttpBrowserCapibilities object so that it may be returned via a web method call. Currently the object cannot be serialized: Cannot serialize member System.Web.Configuration.HttpCapabilitiesBase.Capabilities of type System.Collections.IDictionary, because it implements IDictionary. ...w...

Reverse Cascading XML Configuration: How To?

Question: I am wondering if anyone out there has a good answer as to the best way to Reverse Cascade XML configuration. What does this mean: I have a web application framework which hosts many portals. Each of those portals has a XML configuration file which defines various configuration values. Each of those sites can also have n numb...

Are there XML like Standards to write Sheet music

Hey All, Is there an xml or some form of a text standard that one can write music sheets in? For example: <key= "C" /> <tempo= "90" /> <beat= "4/4" /> <measure id="1"> // some form of music goes here </measure> ...

Framework to develop own forms/UI designer

I have application which consumes XML and based on this creates a GUI. Basically this is declarative language in form of XML to design the GUI. Now I want to create a visual GUI designer to edit forms and screens on the screen and output will be that XML. I need a suggestion what can help me in my development, may be there is some kind ...

Efficient merging of multiple, large xml files into one

I searched the web and I searched stackoverflow up and down. No solution. Although I found solutions how to do this within pure xslt here. But the problem is that the resulting xml will be several hundred MB large. So I must do this with SAX in Java. (please no xslt solution, although I tagged it with xslt ;-)) Let me explain with more...

Extension in XMlSchema, how to?

Hi, I have written a XMLSchema which looks like the one below. The idea is that baseContainer only allows some tags and fullContainer allows all tags in baseContainer + some other tags. The tags may come in any order and there can be multiple of all the tags. In my real sample there is a lot more tags so this method of write XMLSchema t...

JAXB IDREF and ID usage?

I'm looking to write an XSD which will be used to generate some Java classes via JAXB. I'd like the resulting XML to look like this: <Appointment> <Patient ref="12345">Bob Smith</Patient> <Type>Some Appointment Type</Type> <Date>2010-02-17</Date> .... </Appointment> So, given this schema I'm wanting it to generate a c...

Adding XML Attributes to a DataSet

I want to add an attribute to the dataset declared below whose value is the value of one of the field in the row. So I want to add the id as shown below. <root> <Table id="GAS-405"> <apple>2009FA</apple> <orange>3.00</orange> <pear>BGPR</pear> <banana>GAS-405</banana> </Table> </root> This will...

Can XML attributes have spaces?

I'm creating a DTD for an xml document. I have an Enumerated attribute for an xml element. My question is: Can the attribute Type have spaces? eg: <!ELEMENT Link (#PCDATA)> <!ATTLIST Link Type (Amendment|Reference|Superseded|Modified| Corrigendum|Corresponds|Endorsement|Equivalent|Identical|Modified| Not Equivalent|Note take...