Dear all
What is the difference between the 2 lines shown below?:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<meta http-equiv="content-language" content="en-GB" />
If i didn't have the meta tag, what would be the consequence?
Does the meta one affect screen readers and the top one not? I'm a bit confused as to wha...
Okay, my situation is such: I need to send the contents of a JavaScript array to server where a PHP script will persist individual array entries in a MYSQL database. I am NOT using jQuery but I am about to integrate Prototype framework into my project.
I gather that the JS array can easily be converted to JSON using the toJSON() method ...
I always wondered how an XML parser handle the check of a URI namespace. is it string based, or URI based? in other words, this is the standard URI for SVG
xmlns="http://www.w3.org/2000/svg"
suppose that I write instead
xmlns="http://www.w3.org/2000/../2000/svg"
or
xmlns="http://www.w3.org/2000/svg/"
or even
xmlns="http://www....
The iPhone makes it really simple to snarf down an image from the web; you can turn a URL into a UIImage in one line of code. So I'd like to enable my app (an educational puzzle game... my first!) to download some random images to make it more interesting and dynamic.
I thought about using Kodak's image of the day RSS feed, but I'm hav...
<MyXmlType>
<MyXmlElement>Value</MyXmlElement>
</MyXmlType>
I need a small help here. I was trying to change the innertext value of here. After i change the value and save it with Xmldocument object. When I opened the file, I found that it has got saved in this format.
<MyXmlType>
<MyXmlElement>Value</MyXmlElement>
</MyXmlType...
Is there any way to copy (deep) element from one DOMDocument instance to another?
<Document1>
<items>
<item>1</item>
<item>2</item>
...
</items>
</Document1>
<Document2>
<items>
</items>
</Document>
I need to copy /Document1/items/* to /Document2/items/.
It seems that DOMDocument doesn't have methods to import no...
Hello everyone,
Suppose I have the following XML document, which has no default namespace defined, and "Information" element is not prefixed with any namespace prefix. My questions are, 1. what is the namespace element "Information" belong to? 2. is there any way to apply XML schema check against "Information" element (for example, I wa...
I am editing csproj files with Linq-to-XML and need to save the XML without the <?XML?> header.
As XDocument.Save() is missing the necessary option, what's the best way to do this?
...
hi
My basic requirement is to get element value from the XML file, i have used XMLDoxument.SelectSingleNode. My XML file contains some Namespace in header, so i have used NameSpaceManager to add namespace-prefix and i have used prefix to get that particular element. Now in my XML files that namespaces are getting vary, i don’t want to...
What is the best way to store XML data used in a program ? Use RESX file or store it as a .xml file and load and unload the files as per requirement
...
How would I take this xml and create a table with a column for each "section" element and then display all the "document" elements in that column using xslt?
<Documents>
<Section>
<SectionName>Green</SectionName>
<Document>
<FileName>Tier 1 Schedules</FileName>
</Document>
<Document>
<FileName>Tier 3 Sch...
Hi,
i have a xml like this
I want to parse the xml, build a dynamic class with spscified properties. i found some pointers to do it with system.reflection.emit namespace, but i do i always have to create an assembly and module in order to define the type? can i just create a type and define the properties?
<Root>
<type>
<name>mytype<...
Our database contains hierarchical "items". Every item has detail information inside a separate table. E.g. an item could be a folder or a file. Now I would like to export children of an item to XML. For performance reasons I would like to do this inside a SP. Of course, it's possible to write a cursor-based SP, but cursors tend to be sl...
What are the benefits of using the "xml" datatype versus storing the xml content inside a "text" datatype?
Am I able to query by some specific xml attribute or element?
What about indexing and query performance?
Besides the postgresql manual what other online sources can you point me to?
...
I need to manage XML documents in Subversion but don't want to manage the formatting which may turn out differently depending on who is editing the file.
I see two solutions:
Either format the file each time with a known formatting before checking in.
Or give svn a diff program that actively dismisses formatting from the diff algorithm....
I have an xml column in SQL Server 2005 that is the equivalent of:
<Test foo="bar">
<Otherstuff baz="belch" />
</Test>
I want to be able to get the value of the foo attribute of Test (the root element) as a varchar. My goal would be something along the lines of:
select cast( '<Test foo="bar"><Otherstuff baz="belch" /></Test>' as xm...
Hello everyone,
I want to know whether there is quick way to find whether an XML document is correctly encoded in UTF-8 and does not contains any characters which is not allowed in XML UTF-8 encoding.
<?xml version="1.0" encoding="utf-8"?>
thanks in advance,
George
EDIT1: here is the content of my XML file, in both text form and in ...
Have referred to JQuery docs where they mention this piece of code.
var xmlDocument = [create xml document];
$.ajax({
url: "page.php",
processData: false,
data: xmlDocument,
success: handleResponse
});
but i am trying to make the same request in Adobe AIR environment its giving a parse error.
Is there any specific way of crea...
Given an input xml file with following structure:
<root>
<record row="1" col="1" val="1" />
<record row="1" col="2" val="2" />
<record row="1" col="3" val="3" />
<record row="1" col="n" val="4" />
<record row="2" col="1" val="5" />
<record row="2" col="3" val="6" />
<record row="2" col="n" val="7" />
<record row="n" col=...
hi guys,
Following is the code for inserting new nodes in an xml file .
Dim fleStream As New FileStream("C:\mailing.xml", FileMode.Append, FileAccess.Write,FileShare.ReadWrite)
Dim stmWriter As New StreamWriter(fleStream)
Dim writer As New XmlTextWriter(stmWriter)
Dim currNode As XmlNode
Dim doc As New XmlDocument
doc.LoadXml(("<XMLFil...