Hy... I'm new in XML Schema, XSL,... (I have basic understanding)
On web page: http://w3schools.com/xsl/xsl_editxml.asp
is shown example for open,edit,save xml file, but with asp.
Do anyone know how can i open/edit and save xml file using php for next example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<tools>
<tool id="1">
<field i...
Currently I have written a function to deserialize XML as seen below.
How do I change it so I don't have to replace the type every time I want to serialize another object type ? The current object type is cToolConfig. How do I make this function generic ?
Public Shared Function DeserializeFromXML(ByRef strFileNameAndPath As Strin...
From the MusicBrainz REST service, I get the following xml:
<artist-list offset="0" count="59">
<artist type="Person" id="xxxxx" ext:score="100">
...
Using WCF and XmlSerializationFormat, I'm able to get the type and id attributes... but How do I get the "ext:score" one?
This works:
public class Artist
{
[XmlAttribute("i...
Since JDK 1.5 Properties can be loaded from a simple XML file (see IBM article). Is it possible to use XInclude in one of these XML properties files to compose multiple files?
...
Hello,
I'm trying to find a way of indenting a HTML file, I've been using XMLDocument and just using a XmlTextWriter.
However I am unable to format it correctly for HTML documents because it checks the doctype and tries to download it.
Is there a "dumb" indenting mechanism that doesnt validate or check the document and does a best eff...
Using this xml example:
<templateitem itemid="5">
<templateitemdata>%ARN%</templateitemdata>
</templateitem>
<templateitem itemid="6">
<templateitemdata></templateitemdata>
</templateitem>
I am using XPath to get and set Node values. The code I am using to get the nodes is:
private static Node ***getNode***(Document doc, String...
Hi all,
I need a c# lang code to merge two xml files into one, from the specified content.
XML FILE 1 :
<exchange-documents>
<documentlegal>
<bibliographic-data>
<applicants>
<applicant-name>
<name>CENTURY PRODUCTS CO [US]</name>
</applicant-name> ...
I write an XML file "by hand", (i.e. not with LINQ to XML), which sometimes includes an open/close tag containing a single space character. Upon viewing the resulting file, all appears correct, example below...
<Item>
<ItemNumber>3</ItemNumber>
<English> </English>
<Translation>Ignore this one. Do not remove.</Translation>
</Item>...
I am trying to construct an ontology in protege. However, I was wondering how to represent the following in OWL XML:
A hospital consists of various departments, wards, and the central administration
Its a bit strange that I can construct the hardest of ontologies but i just can't solve this.
Any help would be greatly appreciated.
S.
...
I am designing a RESTful API for a booking application. You can request a list of accommodations. And that's where I don't really know how to design the JSON represenation. This is my XML representation:
<?xml version="1.0" encoding="utf-8"?>
<accommodations>
<accommodation>
<name>...</name>
<category>couch</category...
I have some xml that I want to process using xslt. A good amount of the data comes through in key value pairs (see below). I am struggling with how to extract the value base on the key into a variable. I would like to be able to do something like this:
<xsl:variable name="foo" select="/root/entry[key = 'foo']/value"/>
but that does...
I have an ActionScript File sending XML to my servlet.
I am only getting empty arrays on output. Anyone know what Exactly I'm doing wrong?
output is:
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
at java.io.ObjectInputStream.(ObjectInput...
I need to evaluate multiple XPath expressions against a document. The documents are large, so we're using a streaming parser. The XPath expressions simply return the value of a node. I need to order the XPath expressions so that they are in document order (since once I evaluate an expression, evaluation of the next expression begins a...
I'm using an OASIS v 1.1 compatible resolver (Norm Walsh's XMLResolver in conjunction with the catalog below. However, I'm pretty sure I've made some sort of obvious error here (this is the first time I've needed to use v 1.1 features) since attempting to resolve OxChapML.dtd fails. Can anyone see something obviously wrong with this? Or ...
Hello All,
I'm generating a excel report in a XML Excel format. In this report I have to repeat the top 25 rows and bottom 10 rows on each page, like a header and a footer. Can you please guide me on the code that is required to accomplish this task. I'm using ColdFusion. Thank you.
Ravi
...
I have a stored procedure that takes an XML parameter and inserts the "Entity" nodes as records into a table. This works fine unless one of the numeric fields has a value of empty string in the XML. Then it throws an "error converting data type nvarchar to numeric" error.
Is there a way for me to tell SQL to convert empty string to nu...
I have no experience with CGI scripts or any web development. I'm developing a client app and just want to have a small CGI script to send and retrieve XML data to test out my client.
Right now I'm doing a HTTP GET to get the XML files I need. Now I'm changing my client to do POST with request containing XML data and expecting XML back....
In SSMS I've gotten my for xml path query written and it's beautiful.
I put it in an "Execute SQL Task" in the Control Flow, set the resultset to XML.
Now how to I get the results into an actual xml file that I can turn around and FTP to a third party?
This should have been so easy! I would put the XML into a variable but we are looki...
I am using a 3rd-party .NET component which requires an XML configuration file.
I'm am using this in an ASP.NET application.
I get an error when configure the XML with the following dtd:
<!DOCTYPE prod-config SYSTEM "cache-config.dtd">
The error is as follows:
For security reasons DTD is prohibited
in this XML document. To enab...
HI,
I want to dynamically concatenating the strings using C#. I have localized string in XML file , this string i want to update based on the language selection at runtime.
Below i specified input string and expected output string formats.
EX:
*Input String:*
"The density of your %s gas at reference conditions of %s %s ...