xml

Fixing bad XML in Lua

I have a Lua program that is consuming data from an external device. The device is returning malformed XML that looks like: <element attribute1="value1" attribute2="value2" attribute3=" m "value3" " attribute4="value4" /> In particular some of the fields are user editable and could conceivable contain items that should be escaped, bu...

Merging XML files using external entities in Visual Studio 2008

I have some xml data contained in three files (Database.xml, Participants.xml, and ConditionTokens.xml). I am trying to use external entities to place the participants and condition tokens into the database file, but when I run this code... string xmlPath = Environment.CurrentDirectory + @"\Data\Database.xml"; XElement database = XEleme...

SimpleXMLElement Change Attribute Value

I love SimpleXMLElement-- it's great as a XML Element Parser.So I am thinking is there an XML writer-- the one that changes the attribute values, for example, changing <?xml version="1.0"?> <a b="One Two"> <c>Three Four</c> <d>Five Six</d> </a> to <?xml version="1.0"?> <a b="One Two"> <c>seven</c> <d>eight</d> </a> ...

XSLT Transformation

How would I convert the following using xslt <blogger> <post> <text>...</text> <categories>Engineering, Internet, Sausages</catgories> </post> <post> <text>...</text> <categories>Internet, Sausages</catgories> </post> <post> <text>...</text> <categories>Sausages</catgories> </post> </blogger> into...

Comparing XmlDocument

i want to compare xml document. some are 50k+. i'm comparing the OuterXml. is this efficient? is there more effient way? ...

How to have &/&amp; in web.config file

i m passing URl from web config where i need to write Example :: URL=http://www.google.co.in/search?hl=en&amp;rlz=1R2SKPB_enIN332&amp;ei=yktESuLfIIbg7APpquQj&amp;sa=X&amp;spell=1 if i write this url in web.config file i m getting in valid URL. How to go about it? ...

how to create customized marshalled output from JAXB??

I don't want to use XML file created by JAXB marshaller, can I customize it, so that i would give a preferrable format to marshal objects? ...

C# Loading xml data from xml file to Sql server

This is PM.xml 0023 10 Ad GGG 2009-06-08 06:31:20.000000 S ' How can I load data(ReqID,Priority, OId,OD...) in PM.xml file ->MS SQL SERVER 2005 I use C# language. ...

XSD date format overriding

I am defining an XSD. I need to define an element which takes date in format yyyymmdd. How can I define a restriction in XSD to only accept this format? ...

Which XML parser for Haskell?

I'm trying to write some application, that performs analysis of data, stored in pretty big XML files (from 10 to 800MB). Each set of data is stored as single tag, with concrete data specified as attrobutes. I'm currently saxParse from HaXml, and I'm not satisfied with memory usage during work with it. On parsing of 15Mb XML file it cons...

Complex rules in XSD for elements sequence

In my XML I have 6 elements X1, X2, X3, X4, X5 and X6. The rules are as follows - X1 must be followed by X2 X2 must be followed by X3 X3 must be followed by X4 X4 must be followed by X2, X3, X4 or X5 X5 must be followed by X6 X6 can be followed by X2, X3, X4, X5 or X6 I am trying to define an XSD for this. Is it possible? I tried...

Code for communcation between PHP and AS2?

I have a Flash developer I'm working with. This person is building a tool in AS2 that will provide an interface that will send voting data (firstname, lastname, email address, votes (there are 100 items in categories and users will be able to choose some subset to declare "best"). All fair enough, Flash dev will POST data to a PHP app I...

Using JQuery for reading XML through javascript

Hi, I have a JavaScript function code where I want to alert. function msgalert(x,y) { tempstr = x.value if(tempstr.length>y) { alert(c_AcknowledgementText); x.value = tempstr.substring(0,y); } } Now I have an xml with below format: <?xml version="1.0" encoding="utf-8" ?> <root> <key name="c_ContactUsHeading">Contact Us</k...

Benefits of using XML Accelerators

What are XML Accelerators and how do they work? Is anyone using them in a production environment for systems that performs heavy XML processing? If yes, then how have you benefited in using them? ...

iPhone network performance

Hi all, I have a question and I am very open to suggestions (even very odd ones!) I am writing an iPhone app, which does a request (URL with parameters) to a server. As a response, the iPhone receives XML. All is well. Right now, I am looking to improve my application's speed by measuring the time it takes to perform certain tasks. I'...

XML frameworks in PHP

In addition to this question: iPhone network performance, I would like to know if there are any (very) good XML parsing frameworks out there for PHP. PHP has great XML support already, but I wonder if it could be better (in terms of performance, memory usage, etc). ...

Simplest way of updating SQL Server 2005 from a REST web service

We have a job management application running (Access) with the database in SQL Server 2005. A third party is going to provide job information to us, which they make available as XML via an SSL web service using a REST style interface. The service needs to be polled automatically on a regular - 5 or 10 minutes - basis. The XML data nee...

Core Data XML import/export of single object

With Core Data, specifically on Cocoa Touch, is it possible to export and import individual objects in XML format (irrespective of the underlying store format, ideally)? I'm asking this because I'm using Core Data to manage my object graph anyway, and I need to send and receive my objects in XML format with HTTP. So it would be conveni...

How can I visualize XML in Flex /Flash?

Hello, I'm making a Flex application to visualize the contents of an XML file in a tree, radial diagram, etc... I looked all over the internet and I can't find any useful tutorials or source code on how to do this. Most existing components on the web have licensing issues with them, so I prefer to write some sort of XML visualization al...

How can I check for the existence of an XML node in Flex/AS3?

Why does the trace in the loop below return false for every iteration, even though there ARE nodes named with 6 of the 8 possible values??? This only happens when I have a namespace. Is there some other way to check for the node values??? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" la...