I want something proven and tested (e.g. apache commons level of maturity) not some code snippet from the first search result in Google
Or is GenerationJava not the abandonware it seems to be (the download link and the referal to the new host - osjava.org are both 404)
...
I'm using kettle and trying to load both the attribute and node values from an xml document.
<Colors>
<Color code="123">blue</Color>
<Color code="234">black</Color>
<Color code="456">green</Color>
</Colors>
If I set the loop XPath to Colors I will only get one row but it will read both the code and the value.
example:
Code | C...
Hello,
I'm having a problem using a WCF call from a Windows service to my WCF service running on my web server. This call has been working for a number of weeks, but then stopped working all of a sudden, and has not worked since.
The exception I'm getting is:
"General Error Occurred System.ServiceModel.CommunicationException: An erro...
<EFM>
<projects>
<project name="EFM Columbus Supply Chain Project">
<characteristics>
<characteristic name="Types of Data">
<textDescription></textDescription>
<options>
<option name="Commodity Flow" value="True"/>
...
The problem
When opening very large XML files locally, on your machine, it's almost a certainty that it will take an age for that file to open - it can often mean your computer locks down because it thinks it's not responding.
This is an issue if you serve users XML backups of rather complex databases or systems they use - the likehood...
I use an external DTD to validate my xml files. Since the XmlReader seem to look for the DTD only in the folder where the xml file is, I need to somehow tell the reader to look into a specific folder where my dtd's are.
I though of XmlPreloadedResolver to solve this but I cannot find System.Xml.Utils.Dll in the GAC. Isn't this a standa...
I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the schema's version and to have some mechanism to bind against a specific version.
Currently I have two scenarios:
The bug is found within...
What is the best way in C# to get a collection of objects representing the changes between two XML texts, e.g.:
First:
<Customer>
<Id>1</Id>
<FirstName>Angie</FirstName>
<LastName>Jones</LastName>
<ZipCode>23434</ZipCode>
<Contracts>
<Contract>
<Id>234</Id>
<Title>Test Contract 1</Title>
</Contract>
...
Suppose I have class CarResource,
class RaceCarResource : public CarResource,
and class SuperDuperUltraRaceCarResource : public RaceCarResource.
I want to be able to load their data using a single method LoadFromXML.
How would I go about getting the CarResource:LoadFromXML to load it's data,
RaceCarResource to call CarResource:LoadFrom...
I've written a WCF IDispatchMessageInspector, so I can log incomming and outgoing messages. But I'm not sure how to get a nicely-formatted XML string to log.
My code looks something like this:
public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext)
{
MessageBuf...
I have an ASP.NET MVC site which is composed of 3 projects in a solution:
DomainModel (Class Library - Holds LINQ Repo)
DomainServices (Class Library - Holds Business Logic)
WebUI (ASP.NET MVC Site)
I need a place to store a bunch of settings for our site that can be configured via XML.
Which project should this go in? ...
I am trying to get to the geo information off the google-picasa API. This is the original XML:
<georss:where>
<gml:Point>
<gml:pos>35.669998 139.770004</gml:pos>
</gml:Point>
</georss:where>
I already have come this far, with:
$ns_geo=$item->children($namespace['georss']);
$geo=$ns_geo->children($namespace['gml']);
var_dump...
I'm trying to implement a very simple XML schema constraint.
The idref attribute on elements of
type <batz> should only be
allowed to have a value that matches
the id attribute on at least one
element <bar>.
If that doesn't make any sense to you then please just look at the example XML-document below, I think it actually ex...
Here is the xml I am trying to access:
<resourceStrings>
<globalStrings>
<string>
<key>RptTitle1</key>
<value>Title1</value>
</string>
<string>
<key>RptTitle2</key>
<value>ReportTitle2</value>
</string>
<string>
...
Hello
i'm developing a .net application which consumes a java web service, i created the client through wsdl.exe tool and its working fine, one of the method of the web service, receives an xml document as a parameter, and im using an XmlTextWriter to generate the document, but im having problems when including special characters inside ...
Hi,
I have the following xml
<book>
<chapter>this is a sample text</chapter>
</book>
and need to add a namespace to it to be like the one below
<ns0:book xmlns:ns0="http://mybookurl/sample">
<chapter>this is a sample text</chapter>
</ns0:book>
I tried Greco suggestions but it does not work.
http://stackoverflow.com/ques...
How can I load the following formatted XML document:
<Settings>
<MimeTypes>
<MimeType Type="application/mac-binhex40" Extensions=".hqx"/>
<MimeType Type="application/msword" Extensions=".doc;.docx"/>
<MimeType Type="application/pdf" Extensions=".pdf"/>
<MimeType Type="application/vnd.ms-excel" Extensi...
I'm having a devil of a time selecting the value of a single element in my XML document
My document looks like
<?xml version="1.0" encoding="utf-8" ?>
<MySettings>
<AttachmentsPath>Test</AttachmentsPath>
<PendingAttachmentsPath>Test2</PendingAttachmentsPath>
</MySettings>
I've tried to do the following:
XElement mySettings = X...
I am very new to XSLT, and the first thing that i need to do is parse a 300MB file (and that's on the small end). The XSLT is not that complex for the moment, it's just removing some nodes that match a certain criteria.
I have two problems:
It's too slow. It takes 50 seconds to process 500,000 records and that's not fast enough.
It c...
I am learning LINQ and this seems like a fairly simple problem. I have a semi-working solution but I am sure it could be cleaned up.
The propertyAuto node represents a car with id = 606.
This node needs to have at least two child propertyValue nodes, one that references a vehicleValuation element with attribute of "Book" and one of "Au...