After using this code (and the previous example) i was able to send this request (after modifying)
NOTE: There are -'s bc i copied from IE for nicer formatting.
<?xml version="1.0" encoding="UTF-8" ?>
- <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn://www.herong.home/req" xmlns:xsd="http://www.w3.org...
I have a list of news items, sorted by dateCreated. I have a preview box control where I only want to show the first item. How can I do that using XSLT?
<xml>
<news>
<newsitem>
<dateCreated>2009-09-09</dateCreated>
<summary>Something great happened</sumamry>
</newsitem>
<newsitem>
...
It seems that there is no xml parsing tool in available JSFL (Adobe Flash-extension Javascript script file) : http://osflash.org/pipermail/flashextensibility%5Fosflash.org/2006-July/000014.html
So, is there an easy and cross-platform way to add a javascript xml parser?
...
I'm pretty sure you can, but in addition to answering the question in the title, could you also explain the pros, cons, caveats, if any, to doing so? I know that you can't return a List, Set, Collection, Map, or any interface, from a WebMethod (which is stupid, IMO, but I don't know what the design reasons were should I should probably w...
I'm using Delphi to create an XML document from data in a relational database. It tests fine with small datasets, but when I try to expand the size of the data set to production levels it eventually bombs out with an EOutOfMemory exception during node creation.
I'm using a TXMLDocument dropped on a form (MSXML as the Vendor), and my cod...
Suppose I have some schema:
<xsd:schema ...>
<xsd:element name="foo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="fooElement" type="xs:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
This defines some element foo which has inside it...
I constructed an XmlDocument and now I want to convert it to an array. How can this be done?
Thanks,
...
Consider the following code:
Stream stream = GetStreamFromSomewhere();
XmlDictionaryReader mtomReader =XmlDictionaryReader.CreateMtomReader
(
stream,
Encoding.UTF8,
XmlDictionaryReaderQuoatas.Max
);
/// ...
/// is there best way to read binary data from mtomReader's element??
string elementString = mtomReader.XmlReader.ReadElement...
I am trying to serialize an extended UIComponent (com.esri.ags.layers.GraphicsLayer) to send and store in a MSSQL Server database using WebOrb.
Apparently, these types of objects aren't meant to be serialized, and I haven't had much serializing/deserializing using the flash byteArray. I have also tried several other libraries(FlexXB,as...
It all about a typed Dataset...
The 'urn:schemas-microsoft-com:xml-msdatasource:DataSetUISetting' element is not declared
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogener...
I have an image gallery class that loads thumbnails and full images one-by-one in a loop. Then I push then into an array and create one movie clip with each bitmap. It's working good.
In witch part of this process I can preload all images, before display the entire gallery?
Thanx!
...
I need to write generic xsl that would take in an xml document and output the count of nodes and their names. So if I have a file like the following:
<assets>
<asset>
<type>hardware</type>
<item>
<name>HP laptop</name>
<value>799</value>
</item>
<item>
<name>ser...
Hello,
I am using XMLTextWriter in my VB.net file to build XML file.
How do I make sure that the writer writes the elements in new line. As I am building XML file based on values from the database it sometimes will build xml for 100 or more records and some elements are breaking up and appearing in two lines.
How do I make sure that it...
Hey,
I'm basically taking fileA.xml, grabbing nodes from totally distinct parts of the file, and building a new tree in fileB.xml. Relative paths are a bit confusing now because once I get to a node nested 3 down, and I need to add another node which is nested 4 down from a totally different branch, I start needing global xpaths.
Ques...
Right now, I have the following:
function jQueryToString( jQueryObject )
{
return $('<div>').append(jQueryObject.clone()).remove().html();
}
Which works swimmingly in firefox, opera, chrome, and safari. However, it breaks in IE. I need to convert an XML Document object into a string, so what are my options?
...
I'm new to XML and XSLT and have spent a bit of time on what should be a pretty simple search-and-replace case. I just can't seem to get the syntax correct.
The overall goal of this exercise is to replace the values of 'Y' and 'N' in element 'NewCustomer' with 'true' or 'false' respectively.
Here's my sample data.
<?xml version="1.0"...
I'm doing some XML processing with groovy. Specifically, I'm inhaling an XML file via XMLParser, doing a whole batch of in-memory processing, and then serializing the resulting data back out to XML via a MarkupBuiler.
The vast majority of the data in the file gets transferred to a non-xml based object hierarchy to talk to the gui and h...
What is the best way to build an XML tree in Ruby if you have an Array of string paths?
paths = [
"nodeA1",
"nodeA1/nodeB1/nodeC1",
"nodeA1/nodeB1/nodeC1/nodeD1/nodeE1",
"nodeA1/nodeB1/nodeC2",
"nodeA1/nodeB2/nodeC2",
"nodeA3/nodeB2/nodeC3"
]
xml =
<nodeA1>
<nodeB1>
<nodeC1>
<nodeD1>
<nodeE1/>
<...
I have the following xml format:
<FavouriteSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Customer>
<ID>12</ID>
<ID>2</ID>
<ID>5</ID>
</Customer>
<Supplier>
<ID>158</ID>
<ID>23</ID>
<ID>598</ID>
</Supplier>
</FavouriteSettings>
=========...
I am trying to convert a document with content like the following into another document, leaving the CDATA exactly as it was in the first document, but I haven't figured out how to preserve the CDATA with XSLT.
Initial XML:
<node>
<subNode>
<![CDATA[ HI THERE ]]>
</subNode>
<subNode>
<![CDATA[ SOME TEXT ]]>
...