I'm trying to add XML serialization to a fairly trivial class structure in C#. Essentially, there's a single instance of a root class (call it AClass), which holds a List of several instances of some other class (call it AnotherClass):
[XmlRoot("RootNode")]
public class AClass {
[XmlElement("ListNode")]
internal List otherObject...
I have a catalog processor I've built that updates itself by evaluating an xml based manifest file for the current state and comparing it to the local manifest.xml.
I currently process every node to look for a difference in some of the attributes to determine if an update needs to occur. I loop through every node in the tree.
I was won...
Is there in the world analogues of JavaBeans or JAXB for PHP?
Is it possible to generate PHP classes from XML schema?
It's common practice to publish API's as XSD schemas. Java and C# guys can get advantage of this by generating classes right from XSD. Is there same tool for PHP?
...
Is there a way to access a XmlReader asynchronously? The xml is coming in off the network from many different clients like in XMPP; it is a constant stream of <action>...</action> tags.
What i'm after is to be able to use a BeginRead/EndRead-like interface. The best solution I've managed to come up with is to do an asynchronous read for...
I wrote a custom XML reader because I needed something that would not read ahead from the source stream. I wanted the ability to have an object read its data from the stream without negatively affecting the stream for the parent object. That way, the stream can be passed down the object tree.
It's a minimal implementation, meant only ...
one of the toughest challenges I have ever faced in XSLT designing ..
How to copy the unique characters in a given string ..
Test xml is:
<root>
<string>aaeerstrst11232434</string>
</root>
The output I am expecting is:
<string>aerst1234</string>
...
Hi, I have a lot of classes in java with Date/Calendar fields. To generate correct wsdl (for .NET client app) I need to add @XmlElement(nillable=true, required=true) annotation for all getters of Calendar/Date variables in all classes.
Is it possible to configure Aegis (we use Spring for CXF configuration) to automatically set this prop...
Hi, everybody!
I have a .Net web services that are called from flex. Our programmer receives the following xml when calling web service function:
<FunctionName xmlns="WSNamespace"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSc...
Is it possible to create an XPath expression that matches all child nodes that are not of a certain name? E.g.
<a>
<b />
<c />
<d />
<e />
<f />
<g />
</a>
How would I select all children of the 'a' node that are not a 'b' node?
...
Hello experts!
I have currently changed to Mac from Ubuntu and for some reason viewing xml files in Firefox differ between the two. In Ubuntu Firefox(3.5) I get a XML tree but in Mac OS(10.6) Firefox(3.6) i get plain text. To se the xml tree i need to check the source. It is the same xml file.
Could someone please explain why and how t...
Google's Webmaster Tools gives me the following status about my sitemap, but there is no specific error. The XML seems to be valid. Any ideas?
URLs in Sitemap: Total: 7, Indexed: 6
Submitted: Feb 14, 2010 – Error
Downloaded: Feb 14, 2010
Sitemap errors and warnings
Line: -
Status: We encountered an error while trying to access you...
Hi there, I was looking to represent a carriage return within an xml node.
I have tried a whitespace preserve, hex entity with no luck-
and a \n. viewing via a browser.
Example
<Quote>
Alas, poor Yorick!
I knew him
</Quote>
Thanks
Joe
...
I have a table with an XML column in SQL Server 2k8. The following SQL retrieves some XML:
SELECT TOP 1 my_xml_column FROM my_table
Let's say it returns me the following XML
<a>
<b />
<c>
<d />
<d />
<d />
</c>
</a>
What I would like to get is
/a
/a/b
/a/c
/a/c/d
/a/e
In other words, how can I get SQL Server to...
I never liked XML, and always tried to avoid it. And the day finally has come.
When I tried to parse XML it was really hard. I used DOM parser, when I called getChildNodes() of a Node, it returned NodeList. I had to use casting while using XPath.
Is there any Java XML parsing library that is similar to WebDriver's WebElement mechanism,...
Hi,
my XML is referencing a DTD like this:
< !DOCTYPE article PUBLIC "-//OWNER//NAME//EN" "http://invalid/path/to.dtd">
The DTD is not available via the given URL, but I can download it to my disc. I tried to implement a custom XmlResolver to load the DTD, but it does not work. My custom XmlResolver implements GetEntity and via the de...
I was given the task of doing quality check on a machine translation xml file. The translations are from English to a foreign language. I have about 2000 translation blocks in the file and I have to check 200 of them by adding my remarks in the block enclosed in a < comment > tag with a quality attribute. Is there a linux command or some...
I have a result string with the following structure
<items>
<item>
<id>
I must iterate through down to id and I have some other tags there also.
I really don't know how to do it in vbscript. And I would like to have all id:s returned in an array.
Is there not really a method like this:
Dim doc
Dim thumbArray
Set doc ...
Question:
Using VB.NET/C#, is it really not possible to read the below XML in a dataset without significant work ?
I tried
oDataSet.ReadXml(strFileName)<BR>
and
Dim oDataSet As System.Data.DataSet = New System.Data.DataSet
Dim strLocation As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
strLocation += Sys...
Hi all,
I receive DateTime in XML file like this 2009-12-14 05:07:38Z.
So, I thought it was a mistake but after little googling, I find this :
http://www.w3schools.com/Schema/schema_dtypes_date.asp
Time Zones To specify a time zone, you
can either enter a time in UTC time by
adding a "Z" behind the time - like
this:
09:...
In ASP.NET, when I'm using Protected Configuration, I'll specify something similar to the following in my web.config:
<configuration>
<configProtectedData defaultProvider="SampleProvider">
<providers>
<add name="SampleProvider"
type="System.Configuration.RsaProtectedConfigurationProvider,
System.Confi...