Hello,
I have a word document that was saved as xml. now I need to open it in my html page, but the problem is that it's no longer a .doc!, it's .xml, and it won't open.
Any ideas?
TY
The XML im trying to parse contains a control character 0x2 inside CDATA. I tried to replace it with character reference which led to CDATA looking like:
CDATA section----charcter reference----CDATA section
Now if i try to parse it i get an error message saying:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
I tried to output XML in the view file. The view file is result_view.php and its first line is
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
But I get the error "Content is not allowed in prolog". So how to do this correctly? I use Eclipse + PDT.
Hi
The XSL for a website sitemap is not working as expected.
The URL elements are not being looped through?
Please can you take a look:
XML:
http://www.telephonesystems.co.uk/sitemap.xml
XSL:
http://www.telephonesystems.co.uk/css/sitemap.xsl
Thanks
I am trying to read an XML file into a data set using dataset.ReadXml(fileName, XmlReadMode.IgnoreSchema). XML contains data formatted in French eg 231,23 ie '.' in US is replaced by ',' in French. I get an exception Input string was not in a correct format.Can any one help me ?
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 creating an xml…
Hi,
I am working on a Silverlight 3.0 application
I have added a reference to the System.Xml.linq dll. I can also can see it in the references folder of my Silverlight app. however when I try to use it [using System.Xml.linq] it says are you missing an assembly reference!
I am stumped! Please help
Hello,
I am using Castor for XML Binding.. We need to sort the XML based on two different fields. Is there way we can specify the sort order in castor while marshalling?
Which will be a better approach to do this sorting, if castor don't have this feature.
I'm using lxml to create an XML file from scratch;
having a code like this:
from lxml import etree
root = etree.Element("root")
root.set("interesting", "somewhat")
child1 = etree.SubElement(root, "test")
How do i write root Element object to an xml file using write() method of ElementTree class?
Hey Guys,
analogue to this one (http://stackoverflow.com/questions/2788345/replacing-xml-in-file-from-document-in-java or
http://www.exampledepot.com/egs/javax.xml.transform/WriteDom.html) I try to use it under Android...
The problem is, that I can't use the suggested solution under android, because it throws java.lang.verifyError...
After…
Say I want to output a huge set of search results, as XML, into a PrintWriter or an OutputStream, using XOM. The resulting XML would look like this:
<?xml version="1.0" encoding="UTF-8"?>
<resultset>
<result>
[child elements and data]
</result>
...
...
[1000s of result elements more]…
I have a bunch of (50+) XML files in a directory that I would like to insert into a SQL server 2008 table.
How can I create a SQL script from the command prompt or Powershell that will let me insert the files into a simple table with the following schema:
XMLDataFiles (
xmlFileName varchar(255)
, content xml
)
All I need is for…
I have a xml document holding a small data for my project where I want to convert my xml to an excel file (microsoft office excel 2003 and over)
How can I do this programmatically?
I was thinking about a way to allow multiple users to get CRUD access to an XML document in an asp.net app. The operations would obviously have to be made under the assumption of a multithreaded environment.
For perf reasons, would it make sense to cache the document, and use a mutex on that cached version? When would changes be…
I don't mean this to be opinionated.
What are serious pros/cons of various server-side languages in regards to creating/modifying xml. I'm currently researching new platform/language direction and we deal with a lot of xml.
We also do a lot of string manipulation, what advantages/disadvantages do different languages have in…
I have an XML page with some elements in various languages - Arabic, English, Chinese, Japanese.. Which encoding format should I have to choose for that? If I try to render the XML with an XSL (using utf-8 or ISO-8859-6 or ISO-2022-JP), I get this error:
An invalid character was found in text
content.
How shall or…
Hello, I need to have my XSLT stylesheet sort my XML file's child nodes, but only certain ones. Here's an example of what the XML is like:
<?xml version="1.0"?>
<xmltop>
<child1 num="1">
<data>12345</data>
</child1>
<child1 num="2">
<data>12345</data>
</child1>…
Hello,
Im working with quite big xml file (~20-40 MB) and I'm using notepad++.
Is there any better application to view and analyze such a big xml files ?
thanks for help
I am about to develop a application using Sencha touch. The issue i am facing right now is Sencha code should read the following XML ( "data.xml" and display News, Articles...), any expert that can help here please ?
<ns2:categories>
<category>
<catId>96</catId>
…
I have an XML file I can get via a URL. I know I can get the file using fopen, but sometimes I've seen scripts use curl. Is there an advantage to using curl over fopen to get XML files?
Im using c#.net. I have an xml file that contains many nodes. I have got the xml file into a tree view. Now when I select a particular node in the treeview, I should be able to display all its ancestors in a multiline text box. Please suggest me to do this job.
Hello,
I'm a newbie to Cocoa, just develop some little apps with C/C++ on Windows.
I want to make a "simple" app on Cocoa.
When the user specific XML file, the file nodes are represented "enduser viewable".
I made an interface with some NSTextField.
I made a subclass of NSDocument called…
Hello,
I'm working on an iPhone app that will use Vimeo Simple API to give me a listing our videos by a certain user, in a convenient TableView format. I'm new to Parsing XML and have tried TouchXML, TinyXML, and now NSXMLParser with no luck. Most tutorials on parsing XML are for a blog,…
Hellow all,
I have the following xml lines:
"phone" and "city" attributes are optional, but if "phone" exists, also "city" should exists and vise versa. Is it possible to insert such restriction to XML schema?
Thanks.