Using XSL I am trying to turn this XML:
<book><title>This is a <b>great</b> book</title></book>
into this XML:
<book>This is a <bold>great</bold> book</book>
using this xsl:
<xsl:for-each select="book/title/*">
<xsl:choose>
<xsl:when test="name() = 'b'">
<bold>
<xsl:value-of select="text()"/>
</bold>
</xsl:...
The following code:
DataSet ds = new DataSet;
ds.ReadXml("c:\output\" + nome);
GridView1.DataSource = ds;
GridView1.DataBind();
succeeds in getting the fields from the XML, but as default it only displays the three first fields
(this XML specially may have about 60 fields, of which i wish to gather 3 or 4 of them)
how do i take off t...
i have loaded an xml file to a dataset successfully (i can display it in a datagrid), i'd like to load it in several textboxes (about 10 or 12).
the xml has about 60 fields, and i'm not that familiar with getting their names (though i know which ones i want).
that's what i have:
Dim ds As New DataSet
ds.ReadXml(<PATH>)
a glim...
I have to generate XML documents in PL/SQL from some tables in Oracle. I have never done this before, and I have found there seem to be a few main ways to do it:
xmldom API
xml functions (such as xmlelement, xmlagg, xmlroot)
dbms_xmlgen functions
There are 65 tables that will be referenced to generate a single document, and I will ha...
I know how to POST regular data, but not sure how to POST an XML file to a public web service that requires it. Using Asp.net. Are there several ways? Choose best practice.
...
Can anyone suggest a command line xml differencing tool for Solaris? I want to call one in a regression test script, so it's important that the tool can be called from the command line and return a status to indicate whether the files contain any differences.
The tool must have an option to ignore attribute order.
Thanks,
Dave
...
Hello,
I have an API which sends an XML Request to a server:
<?xml version="1.0" encoding="UTF-8"?>
<request type="handle" action="update">
<userdata>
<username>YourUsername</username>
<password>YourPassword</password>
</userdata>
<handledata type="PERSON" id="HandleId">
<name>Mustermann</name>
<firstname>Max</firstname>
<organization>F...
I'm designing an API for a web service and I can't decide between using XML attributes, elements or a mixed architecture.
Let me show you an example. Let's assume I have an object called Domain. This model has 3 properties (tld, sld, trd and the name itself) and a method valid? that returns true if the domain is valid.
# I'm using ruby...
Is there an existing XML schema that can be used to describe a generic file format? Something that would have tags that say things like "The file has a header that is x bytes long", "The first element of the header is a 4 byte unsigned integer that represents the length of the file", etc. ? I need a format of this sort and wanted to ma...
I'm receiving XML over a network socket. I need to take that XML and load it into the DOM to perform further operations. MSXML requires input strings that are in either UCS-2 or UTF-16 and completely ignores the XML header with the encoding type when loading from a string. It allows the loading of XML fragments, so this makes some sense....
What are some good tools for quickly and easily converting XML to JSON in Java?
Thanks in advance for all your help!
...
Hello all,
for some time now I have been trying to solve the following problem and I'm starting to run out of ideas:
I have generated a set of C# classes from an xsd schema using the xsd.exe tool and deserializing xml files works fine. The problem is that apart from the convenience and safety of using the auto generated classes, I also...
Hi. Now I have a stored procedure (SQL server) which will return a XML from "for xml path" statement. I've try to read the response with ExecuteXmlReader and ExecuteReader, but I got nothing.
I've google a while but still can't find how to extract the return value, or, how to retrive the return value. Should I use ExecuteXmlReader? or so...
<root>
<elm id="1"/>
<elm id="2"/>
<elm id="3"/>
<elm id="4"/>
</root>
I want to leave id="2" in the dom,
how can domj4 to remove the other three ?
result:
<root>
<elm id="2"/>
</root>
...
I have a attribute called: description and I want to have the following in it with new lines:
This is the content description section.
Download instruction:
This is the contents on how to download contents.
Hotline support:
This is the hotline for contents.
How do I create a new line for it in xml?
...
When compiling my Java Servlet code, I get the following error...
in javax.servlet.http.HttpServlet; overridden method does not throw org.xml.sax.SAXException
In my overridden doGet() function, I'm using JAXP to process XML which apparently requires me to handle SAXExceptions. But when I tac "SAXExeption" onto the list of exception t...
Hi,
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at java.io.StringWriter.write(Unknown Source)
at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(Buffe...
Hey all,
I have this SimpleXMLElement object with a XML setup similar to the following...
$xml <<< EOX
<books>
<book>
<name>ABCD</name>
</book>
</books>
EOX;
$sx = new SimpleXMLElement( $xml );
Now I have a class named Book that contains info. about each book. The same class can also spit out the book info. in XML...
Let's say I have a recursive data structure
class Tree {
private Tree right;
private Tree left;
private int data;
....
}
I want to convert it to xml with jsp, so my ui tree widget can load the xml page with Ajax and construct a tree (with expandable/collapsable nodes, etc).
The xml would look something like ...
I'm planning to use flash image rotator based on xml where are defined paths from all images that will be rotated. What I wanted to do is to use this rotator for random images rotating. Each time page is refreshed new xml file is created (existing one is replaced with new one). Well, I was thinking and came to this:
- user A visits page,...