xml

How to load xml item one at a time as3

Flash AS3: Does anyone know how to load items one at a time instead of loading in loop at a normal process using AS3? I'm having problem with overwritten value. I couldn't make that work, it's always overwritten the last value.I tried to use the dictionary and though it will help to resolve my problem... I want to be able for EACH but...

Lock an XML file

Hi, We have a requirement as follows for handling XML files in C# code. Please provide logic/solution in such a way to achieve this. Problem: We have an XML file,assume it has test.xml. When a user 'A' working with test.xml then we want the requirement that to lock this XML and to process like read/write etc. In the sametime a user 'B'...

xsl loop to split a fragment tree every n times

This is a sample of my XML, it can possibly have thousands of rows of items in a range of categories. <store> <products type="computer"> <item desc="text" amount="99"></c> <item desc="text" amount="69.95"></c> <item desc="text" amount="4.50"></c> <item desc="text" amount="10"></c> <item desc="text" amount="9.99"><...

Easy way parsing Shopzilla Publisher feed or API?

Do any have easy tools for parsing Shopzilla Publisher feed or API? ...

Query Regarding XML

How To call Xml File into Our Xcode Application… I want to do application like Photo Gallery , I need to download the XML file over internet and it store it in my MAIN BUNDLE.. I need to connect to links in the XML file & Download the IMAGES ...

Error storing the result of select for xml into an xml variable (TSQL)

I am having trouble storing the result of a "select for xml" into an xml variable. I am trying to do something like this: declare @m xml select @m=(select value from MyTable for xml auto) select @m as m If MyTable contains only few records then anything is fine but, when MyTable contains more records (Ex:4700) the result is empty. It'...

xml and namespace anomaly

What is the difference between the following pieces of xml? The reason I ask is that when I submit the xml to a BPEL process the first and second one work but the last one does not, what is going on? <!-- imported namespace referenced with prefix --> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http:...

Is it possible to generate an xml for an xsd simple type?

Hi, I've got the following simple type coming from a Corba IDL translated to xsd: <xs:simpleType name="fooType" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:restriction base="xs:string"> <xs:enumeration value="bar" /> <xs:enumeration value="baz" /> </xs:restriction> </xs:simpleType> The problem I'm facing is ...

How can I deserialise an XML element into an array of elements with both attributes and text in C#?

I am having a problem trying to deserialise this XML: <?xml version="1.0" encoding="UTF-8"?> <links> <link title="ABC">http://abc.co.uk&lt;/link&gt; <link title="eBay">http://ebay.co.uk&lt;/link&gt; <link title="Best Damn Site on the Web">http://stackoverflow.com&lt;/link&gt; </links> Using the code: [XmlRoot("links")] pu...

Expecting End of File Exception in parsing xml data for Blackberry application

Hi All, I am getting parser exception as "Expecting End of File" while parsing xml data for Blackberry application? How do I fix it? ...

Removing invalid characters from string in AS3 ready for XML

I need some code for ActionScript 3.0 which will remove any characters which are not valid in an XML attribute. Have spent some time searching google and not found what I'm after. Can anybody help me out? ...

How can i remove BOM from XmlTextWriter using C#

Hi, i need to remove the BOM from an XML file that is being created. I have tried using the new UTF8Encoding(false) method but it doesnt work. Here is the code i have: XmlDocument xmlDoc = new XmlDocument(); XmlTextWriter xmlWriter = new XmlTextWriter(filename, new UTF8Encoding(false)); xmlWriter.Formatting = Formatting....

How to reverse date format in XSLT ?

I’m working on a site In that site some pages gets data from XML through XSLT. But the date is displayed as YYYY-MM-DD which ideally is taken from the XML which was in this format. I would like to convert this format to DD-MM-YYYY through XSLT or some other possible way. Please suggest me an idea to go ahead or provide me the code to a...

SQL Server 05: Reading values from XML datatype in a query

I'm trying to get all of the attributes and node values from XML in a SQL query. I tried doing the following, but I'm missing out few values in the output. Here is what I tried: DECLARE @Details xml SET @Details = '<root> <SelectedCategory CategoryId="101"> <ItemID>120</ItemID> <ItemID>256</ItemID> </SelectedCat...

Reference XSL on a network

Hello, I'm embedding an HTML control in our CRM system, and using it to display a bit of XML. I want to format this using an XSL document. Everything works fine when I test it locally with a test.xml and a test.xsl, but of course when I change the XSL link to \servername\share\test.xsl then it doesn't work, I imagine because the locat...

Unmarshalling related XML elements within different subtrees

Good day to you, I use Castor to map network infrastructure into Java classes. My XML file looks like this: <SPECTRUM_Topology> <Topology> <!-- Device information --> <Device ip_dnsname="172.20.162.1" ... /> </Topology> <Update> <Device ip_dnsname="172.20.162.1"> <!-- Port information --> <Port ... /> ...

Pass XML fragments as stylesheet paramters with lxml?

I'm starting to use lxml in Python for processing XML/XSL documents, and in general it seems very straight forward. However, I'm not able to find a way to pass an XML fragment as a stylesheet parameter when doing a translation. For example, in PHP it is possible to pass DOMDocument XML fragments as stylesheet parameters, so that one can...

stop 2nd question after save to XML format?

How can i get my Excel xls file that is password protected to stop asking me if i want to convert it to an XML file format? ...

Do you know of a Visual XML Schema Designer tool?

Hey I've been looking for a visual xml schema design-tool. Do you know of a tool like this? I've found http://www.stylusstudio.com/xml%5Fschema%5Feditor.html Are there any pitfalls I should be aware of when using these types of tools? (I've read: http://stackoverflow.com/questions/746673/xml-schema-designer-for-visual-studio-2008) ...

How to display XSD validated XML using XSLT

I've been fighting with this for some time now, and haven't been able to find a clear answer to this yet. As I understand correctly I can store data in an XML file, validate it using an XSD and then display the data neatly using an XSLT. However I've been having issues trying to perform XPath queries to select the data I wish to displa...