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 solve this?
Th...
I am using IXMLDOMNodeListPtr , IXMLDOMNodePtr , IXMLDOMElementPtr and IXMLDOMDocPtr. I am having little confusion over here i.e. Should i have to call Release() on these pointers before they go out of scope.
Thanks.
...
Hi I need the following php script to do a currency conversion using a different XML file.
Its a script from white-hat design
http://www.white-hat-web-design.co.uk/articles/php-currency-conversion.php
The script needs to be amended to do the following:
1, The php script downloads every 24 hours an xml file from
rss.timegenie.com/fore...
I am writing a program in Java that takes a custom XML file and parses it. I'm using the XML file for storage. I am getting the following error in Eclipse.
[Fatal Error] :1:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.par...
Hi,
Every time I run the following piece of code I get 'Unexpected end of XML document.' exception.
I have tried Microsoft's EWSEditor 1.6.1.1 and get the same exception which suggests it could be an exchange service issue.
Any ideas would be appreciated. Thank you.
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange...
I've written a class extending XmlUrlResolver to resolve references to public identifiers in XML documents. For example, when an XML document starts with:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE chapter PUBLIC "-//Custom//EN" "custom.dtd">
The public identifier "-//Custom/EN" is passed to the relativeURI parameter of my ove...
Heres something I've been pondering for a while ...
Do you struggle with the size and the number of entries in the web.config file? Do you understand every element?
Is it time for Microsoft to relook at how an ASP.NET site is configured, perhaps by splitting the web.config file into multiple files?
...
I have a legacy application that I inherited that passes a lot of XML around as Strings.
I often need the ability to check if a String will be valid XML. What is the fastest and least expensive way to check if a string is valid XML in .NET?
I'm working in .NET 3.5 and would most likely use this as an extension method (off of string) i...
I read a xml file (myConfig.config) and provide it as an input to a CLR method. When I make changes to this xml file, it doesn't seem to be recognizing it. When this line throws an error, I always see the first version of the file as a part of the error message.
In the config file properties, I have set Copy to Output Directory as Copy ...
I was wondering if there is a way to get a list of results into a list with linq to xml. If I would have the following xml for example:
<?xml version="1.0"?>
<Sports xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SportPages>
<SportPage type="test">
<LinkPag...
In C#, Whenever i need to get file path more dyanmically, i do something like this
string filePath = System.IO.Path.GetFullPath(@"..\..\TestData\TestFile.xls");
Is there anyway, i can mention same file path in xml file.
<ConfigValue name ="filePath" value="<filepath like above>"/>
...
I am having some problems with an XML transform and need some help.
The stylesheet should iterate through all suffix elements and place the contents without the suffix tag next to the last text node within its first ancestor quote-block element (see desired ouput). It works when only a single suffix is present, but not when 2 are prese...
I've created a simple Flex application to fetch an XML file. I need a Flex variable "id" to grab the "letters" value from the tag in the XML code, then show the id in an Alert window. When I run this code now (with the full code), the Alert box is blank.
When I run the application in Flex Debug mode, this is what Flex sees: http://stat...
Hi:
Now I have to handle some xml in my java swing application.
I have to build a swing ui according to the special schema ,then user can fill some values.After user completed,I will collect the information,validate the value and then build a xml file.
For building xml file I can use the xmlbeans,however how to parse the schema and buil...
Hi - we are all familiar with "embedding" PHP scripts in HTML pages to do tasks like displaying form results, but how can that be done in a way that displays XML?
For example, if I wrote:
<?xml version='1.0' ?>
<Response>
<?php
$body = $_GET['Body'];
$fromPh = $_GET['From'];
echo "<Msg>Your number is: $fromPh,...
I have two methods, one that I use to convert an image to a Base64 string so I can store it in an XML tag and another to convert the Base64 string back to an image. I'm able to convert the image to a string and store it in the XML, but when I try to convert the string back to an image I'm getting the following error: "The magic number i...
To Editors: Sorry, I didnt realise the question thing till you pointed it out. Also I didn't know about the appengine tag, I'm assuming it was selected by mistake from that JS autosuggestion box (it usually happens with me, I run a P3) my apologies for that too. I've edited it now, if it doesnt work let me know.
Hi all, I'm making (or a...
Edit :
I've got an aspx file (default.aspx) that loads a flash file (index.swf), but this swf needs a xml file (foo.xml) to load correctly. However, I would like to block any request aiming directly at the xml file.
Is it possible, using a rewritting engine (isapi_rewrite for example) to detect if the xml file is being 'hotlinked' or be...
I am trying to re-arrange all the attributes of the XML file.
Need to group all the attributes of each node.
<?xml version="1.0" encoding="UTF-8"?>
<subject>
<param name="A" value="a" />
<study>
<param name="AA" value="aa" />
<series>
<param name="AAA" value="aaa" />
<dataset>
...
I'm calling a stored function like this:
select XML_INVOICE.GENERATE_XML_DOC('84200006823') from dual;
The query results then show up in a table underneath, which I can right click and select "Export Data" -> XML
<?xml version='1.0' encoding='UTF8' ?>
<RESULTS>
<ROW>
<COLUMN NAME="XML_INVOICE.GENERATE_XML_DOC('84200006823')" <...