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...
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...
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>
...
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...
i want to compare xml document. some are 50k+. i'm comparing the OuterXml. is this efficient? is there more effient way?
...
i m passing URl from web config where i need to write
Example :: URL=http://www.google.co.in/search?hl=en&rlz=1R2SKPB_enIN332&ei=yktESuLfIIbg7APpquQj&sa=X&spell=1
if i write this url in web.config file i m getting in valid URL.
How to go about it?
...
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?
...
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.
...
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?
...
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...
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...
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...
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...
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?
...
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'...
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).
...
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...
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...
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...
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...