Is there any way to include the [ character in an xml element name?
For example
<AWSECommerceService.ItemSearch.ItemSearch.Request[0].SearchIndex>Electronics</AWSECommerceService.ItemSearch.ItemSearch.Request[0].SearchIndex>
The reason for using this is that in SVG hidden request input values are specified using xml elements whose n...
Ok, so I had this neat little idea the other night to create a helper class for DOMDOCUMENT that mimics, to some extent, jQuery's ability to manipulate the DOM of an HTML or XML-based string. Instead of css selectors, XPath is used. For example:
$Xml->load($source)
->path('//root/items')
->each(function($Context)
{
e...
hello friends
how to upload xml file and insert in sqlserver 2000 database.
regards
sanjay
...
Hi,
I've got a class with well over 100 properties (it's a database mapping class) and one of the properties has to be in a method. In other words this data is not exposed via a property but via methods:
"ABCType GetABC(), SetABC(ABCType value)"
It's all very un-C#-like. I shudder when I see it.
The class needs to be serializable so ...
XPath (v1) contains no way to encode expressions.
If you only have single OR double quotes then you can use expressions such as
//review[@name="Bob's Pizza"]
//review[@name='"Pizza" Pam']
But if you have BOTH e.g [Fred's "Fancy Pizza"] then you have to use something like this Escaping Strings in XPath (C++) to generate
//review[@n...
How do I read and parse an XML file in C#?
...
I would like to know the file creation/modification date of the XML file currently being processed by my XSLT code.
I am processing an XML file and producing an HTML report. I'd like to include the date of the source XML file in the HTML report.
Note: I am using C# .NET 2008 and using the built-in XslCompiledTransform class. I have sin...
I am copying an example from XSLT Cookbook: 2nd Edition (O'Reilly: Mangano, 2006) where Mangano creates a tree diagram with SVG. As a way to quickly test this code, I am simply transforming the XML using JSTL's <x:transform/> tag, and running it in Jetty 6. The XSLT seems to be getting hung on calling java:java.lang.Math:max, saying:
...
Is there any way to do it?
...
In the rss xml file I have my channel and several items. Typically the item has a title, link, description and maybe time or something. Can I put my own tags in there with additional data I want to send?
Example: Say if was a doing a rss feed to contains weather/temperature info, I might have several item tags, with one for each cit...
I'm going to be writing a program which has some web services in it that use XML to pass data back and forth. The format of the XML is predefined - I can't change it to suit my needs - but in code I can handle the data any way I want.
My question: Is it better for me to handle the data structure in code as an XML tree, or to write an e...
I would like to implement IXmlSerializable on a class and only override either ReadXml or WriteXml, but not both. If I didn't implement IXMLSerializable on this class, the XMLSerializer would automatically serialize all members. I'd like that default behavior to apply for the non-overridden case. However, since IXmlSerializable is an ...
XML has its uses.
What is the worst abuse of XML that you have seen? What about XML made it so unsuitable for the task?
...
The ElementTree.parse reads from a file, how can I use this if I already have the XML data in a string?
Maybe I am missing something here, but there must be a way to use the ElementTree without writing out the string to a file and reading it again.
xml.etree.elementtree
...
I have an XML file where the number are comma-separated
<foo>
<bar val="1,23"/>
<bar val="4,56"/>
<bar val="7,89"/>
</foo>
I would like to make a sum over /foo/bar/@val values in XSLT, but I am a bit stuck the formatting. Does anyone knows what would be the proper syntax?
...
I am putting an XSL together than will create a NAnt build script using as input an XML file that defines all of the items that need to be built. We have a lot of very similar projects with standard layouts and defined standards for handover areas and so having an XML file that defines what the developers want to happen rather than desc...
Hi All
I have two XML files of similar structure which I wish to merge into one file.
Currently I am using EL4J XML Merge which I came across in this tutorial.
However it does not merge as I expect it to for instances the main problem is its not merging the from both files into one element aka one that contains 1, 2, 3 and 4.
Instea...
I have a report written in MS Word .doc format, 40+ pages. Based on user input I have to change some lines and print it to PDF format. I am on windows hosting server, that means asp.net and c# language. Therefor I cannot use Word application or printer drivers.
Basically I have two ideas how to get the PDF format..
- to save this .doc t...
I have a variable string that contains well-formed and valid XML. I need to use Javascript to parse this feed.
How can I accomplish this using (browser-compatible) Javascript?
...
I've recently hit a wall with an issue with Java's native XML API (the W3C one) which at its core is that if I try to use a direct XPath expression in my document like, say, //body the XPath is evaluated as false (incorrect behaviour), however if I replace that with //*[1] it evaluates as true (desired behaviour).
I have checked numero...