Hi all,
I'm having a bit of trouble with what should be a simple problem.
I have a service method that takes in a c# Message type and i want to just extract the body of that soap message and use it to construct a completely new message. I can't use the GetBody<>() method on the Message class as i would not know what type to serialise ...
What I'd like to do is keep some configuration in an external XML file and my stored procedure to open this and use the settings defined in it. Is this possible? I dont want to store the XML in a table.
...
My Question
I have an xml file with invalid syntax first of all, second i cant do anything to change it, due to the company thats feeding the xml.
I have element nodes that i need to gut out the space, how can i do that VIA C# .NET
I also have the option to get the data via a CSV format instead, thinking it might be easier to replace ...
I remember that a while ago I found a truly great utility here on StackOverflow for manipulating XML documents with an interface like:
new XMLTool(document)
.goTo("xpath")
.addNode("name")
.addChild()
.addContent("xxx")
.parent()
.remove("oldNode);
Could anybody tell me what tool that was?
...
Hi I use this parser for my project: http://simple-rss.rubyforge.org/
It works nice but I have nodes like this:
<dc:creator>viroos</dc:creator>
I have no idea how to get nodes like this.
...
I'm creating an xml file and have an XSD file to work against.
I'm sure I remember reading somewhere that C# can automagically create class objects when given an XSD. So if I have an address element in XML I can have a generated C# class that uses the xsd to create the required properties of the class.
e.g.<adress><postcode></postcode>...
I do not need to edit any XML-file or anything, this is only for reading and parsing.
I want to be able to handle the XML-document as a dictionary, like: username = doc["username"];, but I can't find out how to "convert" the document. I've also encountered the problem with duplicate key-names, but that could be easlily avoided by appen...
I need a tool for comparing and merging two xml-files.
Requirements
Handle large Files (> 50mb)
Collapse XmlNodes in UI
Support validation of files
merge files in both directions
edit files in ui
Any suggestions?
...
The documentation from google only talks about returning JSON. Is it possible to get the results back as XML, or will I have to convert to XML myself?
...
I have a large (~50Mb) file containing poorly formatted XML describing documents and properties between <item> </item> tags, and I want to extract the text from all English documents.
Python's standard XML parsing utilities (dom, sax, expat) choke on the bad formatting, and more forgiving libraries (sgmllib, BeautifulSoup) parse the ent...
Errors:
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Undefined variable in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
compilation error: file /protocols.xsl line 18 element template in /transform.php on line 24
Warning: XSLTProcessor::import...
I am trying to get the child XML tag names in my AS3 program. For example, I have a file with information like this:
<LocationInfo>
<City>New York City</City>
<State>NY</State>
<Zip>10098</Zip>
</LocationInfo>
I load the file into an ArrayCollection and can access each item I need by name such as
["City"] // Returns New...
I can easily do this with JQuery or PHP but I have a project for my Intro to C++ class and I thought it'll be pretty cool if I could mix C++ with some APIs like twitter, google, yahoo etc.
Could you tell me if there is a class ( I know OOP ) I can use to read an external XML or JSON file. The program has to run on windows and linux so I...
Someone recently asked on IRC about the history of XML parsing and WS APIs in Java, and I started wondering. Is there any written history? What are the latest and coolest toys? Why are there so many?
Usually knowing the history of why things were developed and how they are supposed to improve over their predecessors helps learning the n...
I'm using XDocument and XElement objects to write a large XML file (currently 8MB). I'd like to switch to XStreamingElement so that I can write the file without having all the data in memory at once. Unfortunately, I need to include an encoding declaration. Can I do that without using an XDocument?
...
This is a two part question. The first is a specific question about DataSets and XML. The second is a more general "am I taking the right approach" type question. While I'd certainly appreciate replies that answer both questions, I'd also welcome answers that only tackle one or the other!
Question 1
Does the DataSet class support mixed...
I have an XML document that is loaded into a column of a table of the XML data type. Is there any good examples showing how to insert using a store procedure and OpenXML into a parent tables with primary key and also into a child table with it's associated foreign key? Both the Parent and Child have relationships to lookup tables. The ...
Here's what I've done so far:
In my App class, I declare a new XmlDataProvider and set the source to a valid XML file (whose Build Action is set to Content/Copy Always).
public partial class App : Application
{
public App()
{
InitializeComponent();
var services = new XmlDataProvider();
services.Source =...
Hi,
I really need an answer to this question. I am working on a project which uses XML to make pages, then XSLT to produce it to a web page. Here is a code sample:
public function transform ($xml) {
$proc = new XSLTProcessor;
$proc->importStyleSheet ($this->xsl);
$output = $proc->transformToXML ($xml);
return $output;
}
the...
The CMS I'm working with uses actual html comments around sections in an xml file to determine what is editable. I'm wondering how this is normally done in other CMSes.
Example:
/about.xml:
<image><!-- :region editable="true": --> <image src=foo.png> <!-- /region/ --></image>
<content> <p>some non-editable html</p>
<!-- :region editab...