I've always preferred using XSD.exe/VS.Net to generate schema, generate classes off the schema, deserialize xml file into object tree to parse an XML file. [Well, most of my requirements thus far have made this a perfect choice].
I've a crib though: The class names generated by XSD.exe are weird - meaning XSD.exe strives to keep them u...
Hi,
I have A $param that I am passing into a template. I wish to use the value of this parameter as class name for a div. The class is not taking the value of the parameter but taking the parameter name (in the html page it is $param). Is there any way I can use the value of a parameter as a class name?
Thanks
John
...
I have the SOAP request in an XML file. I want to post the request to the web service in .net
How to implement?
Thanks
Senthil
...
Can an XML-RPC call be made and the resulting XML response be utilized by Adobe's Flex?
Would Flex be better served by a non-XML response and if so what format?
...
I have a textfield within a repeating table. I am able to validate what's inside but if the text does not pass my validation it should change it's color to red.
Does anybody know how I can achieve this goal by code?
I have found a solution for a rich text box by setting the innerXml to the following:
"This is just a piece of <span xm...
Actionscript 3.0 has decent native XML support so I'm not surprised to see a lot of people loading an external XML and then passing the object around to various modules/sections of code.
However my instinct is to create a class (i.e. with statically named/typed fields), populate it from the XML and pass THAT around instead. The advantag...
Are there any Code Generators that would take a well-formed XML document, and write out an XSD schema based on how the XML document is structured?
...
I am using VB9's inline XML, and I have a need to specify a non-breaking space. Where you would normally use " " in html, using it in inline XML produces the "XML entity references are not supported" error. How do you specify a non-breaking space?
...
I want some slightly 'dynamic' XML source files. I want some of the element values to be dynamic, or 'expandable'.
I'm providing a value for this variable, from some other source.
@Name = 'freezingkiwis'
What I want to provide is something like this in an XML file:
<?xml version="1.0" encoding="UTF-8"?>
<Contact>
<Name>#{@Name}...
Hello all,
We are building an application which stores data in an S3 bucket. However, we are having problems with the PutObject method. Here is the xml packet we are sending out:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml...
Hello,
I have this XML pattern...
<module>
<promo>
<day>1</day>
<day>2</day>
</promo>
<promo>
<day>3</day>
<day>4</day>
</promo>
<promo>
<day>Default</day>
</promo>
</module>
I would like to stop users putting the same value into 2 <day> tags anywhere in the <module> tag.
I can current...
Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:
<element1>
<element2>
someData
</element2>
</element1>
instead of:
<element1><element2>someData</element2></element1>
If this is not possible in woodstox, is there any other lightweight libs that can do this?
...
How do I serialize a 'Type'?
I want to serialize to XML an object that has a property that is a type of an object. The idea is that when it is deserialized I can create an object of that type.
public class NewObject
{
}
[XmlRoot]
public class XmlData
{
private Type t;
public Type T
{
get { return t; }
set...
I have a piece of XML that is structured similar to this:
<root>
<score name="Exam 1"><value>76</value></score>
<score name="Exam 2"><value>87</value</score>
</root>
and I would like to transform it to look like this:
<root>
<Exam 1>76</Exam 1>
<Exam 2>87</Exam 2>
</root>
Following this article I am using ...
I'm new to .net and c#, so I want to make sure i'm using the right tool for the job.
The XML i'm receiving is a description of a directory tree on another machine, so it go many levels deep. What I need to do now is to take the XML and create a structure of objects (custom classes) and populate them with info from the XML input, like Fi...
I'm working with an XML file that subscribes to an industry standard. The standards document for the schema defines one of the fields as a rational number and its data is represented as two integers, typically with the second value being a 1 (e.g. <foo>20 1</foo>). I've been hunting around without a great deal of success to see if there'...
I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn't show any character at the beginning of the file, but when I pull it up in Visual Studio's debugger, I clearly see an empty box in front of the file.
I also get the error:
Data at the root level is invalid. Line 1, position 1.
Anyone know w...
which one of the two is more spread? I want to read out the version number from http://freshmeat.net/projects-xml/mysql/mysql.xml?branch_id=46519 but I want to use the one which more people have.
If you know another way to get the latest stable version number from mysql please tell me ;)
...
Many products/services we are interact with (including our own) uses XML-over-HTTP or derivatives (like OMA IMPS IM/presence protocol).
I am looking for some tool that will "listen" to a traffic and produce client/server stubs for simulation/testing.
Thanks.
...
Helo!
Is this possible to use string value of one node which tells what type of field is presented in another node using LINQ to XML?
For example:
<node>
<name>nodeName</name>
<type>string</type>
</node>
<node>
<name>0</name>
<type>bool</type>
</node>
<node>
<name>42</name>
<type>int</type>
</node>
Thanks in advance
...