When I use wsdl.exe to create a client from my wsdl, it finishes O.K., but inserts the following comment in the file:
// CODEGEN: Parameter 'VerificationData' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
I can't figu...
Lately, I've been pondering the somewhat non-mainstream architecture of building raw XML on the server side, and then using an XSLT stylesheet on the client to transform the XML into the full UI. Of course, a fallback mechanism would have to exist if the client was not capable of client side XSLT, in which case we'd just transform it fo...
I have a heap of unit tests that need to check XML outputs.
I have started out comparing strings but this isn't going to scale as formatting and superficial differences get in the way.
What is the easiest way in .NET to evaluate whether the generated XML is semantically the same as what the test expects?
Closed as duplicate of How...
I have a table:
MyTable
config as XML
title as varchar(255)
In MyTable.config I have XML in the following structure:
<configuration pagetitle="myConfig">
<column>
<row>
<component id="1" type="MyPiece" title="My Title" text="junk" />
</row>
</column>
</configuration>
I need a script to inject the value of MyTa...
How can I refer a custom function in xml? Suppose that I have a function written in Java and want it to refer by the xml tag, how is this possible?
Current senario: I am using XACML2.0 which contains xml tags and I want to refer some function in Java that will talk to the backend data, I'm unable to refer a function in xacml. Could yo...
My schema specifies a namespace, but the documents don't. What's the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)?
In other words, I have
<foo><bar></bar></foo>
instead of,
<foo xmlns="http://tempuri.org/"><bar></bar></foo>
...
I'm using Java's Transformer class to process an XML Document object.
This is the code that creates the Transformer:
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setO...
Hi people,
Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
...
At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that was bound to a DataGrid/DataList/Repeater control, that the APIs returned an XML node/collec...
what is the right way of using XElement.Save(filepath)? Do I need to call this in a try/catch block all the time? How does it deal with concurrency?
...
I have an XML schema that represents a product in a DB, and I am trying to figure out the best way to store the product image references as XML nodes. There will be a primary image, and then alternate images, each of them with sequences (display order). Would this be an appropriate format, or are there better approaches:
<item>
<id>...
I use URLLoader to load data into my Flex app (mostly XML) and my buddy who is doing the same thing mostly uses HTTPService. Is there a specific or valid reason to use on over the other?
...
I am trying to do something in VisualWebDev 2008 Express that I thought would be simple, but it is not working. I want to display data from an XML file so I added the XMLDataSource to my page, pointed it to the XML file, and then added the GridView and connected it to the datasource. I am getting the following error:
GridView - GridView1...
I'm looking for a reliable, implementation-independent way to clone an entire Document. The Javadocs specifically say that calling cloneNode on a Document is implementation-specific. I've tried passing the Document through a no-op Transformer, but the resulting Node has no owner Document.
I could create a new Document and import the n...
I know that CSS can be used to control the presentation of (X)HTML in modern browsers. I was under the impression that this was possible for arbitrary XML as well. (Am I mistaken?)
A concrete example: given the following XML
<log>
<entry revision="1">
<author>J Random Hacker</author>
<message>Some pithy explanation</message>...
Once a programmer decides to implement IXmlSerializable, what are the rules and best practices for implementing it? I've heard that GetSchema() should return null and ReadXml should move to the next element before returning. Are these true? And what about WriteXml: should it write a root element for the object or is it assumed that the r...
I have written a WPF application that I want to port to Silverlight 2.
My business logic and model (for the M-V-VM design pattern) are packaged into a separate assembly which I am trying to recast as a Silverlight class library.
Unfortunately, the XmlNode class which I use to parse an XML file with model data is not supported by Silve...
Hello,
I am trying to merge several XML files in a single XDocument object.
Merge does not exist in XDocument object. I miss this.
Has anyone already implemented a Merge extension method for XDocument, or something similar ?
...
I'm in the process of converting a varchar(8000) field to an xml field in MSSQL 2005.
Many of the XML docs have small issues (example: degree symbol not encoded). Is there a better way to validate the XML than a Try/Catch process?
Maybe I could write a .NET Stored Procedure. What is the proper method to validate (or invalidate) an XML d...
I am binding a Treeview to an XMLDataSource, The databindings are being generated automaticaly, The XML looks like this:-
<Passengers>
<Passenger>
<PassengerName>Name1</PassengerName>
</Passenger>
<Passenger>
<PassengerName>Name2</PassengerName>
</Passenger>
<Passenger>
<PassengerName>Name3</PassengerName>
</Pass...