xml

Save snapshot data to XML

I have 5 tables belonging to 2 different datasets, I use them to populate some grids in a page. I want to implement some snapshot functionality and I need to save the data in the tables in an XML in the database. I was thinking of simply serializing the tables to XML using the .Net XmlSerializer (deserializing also), but there is a lot o...

Display dynamic content in a frame controlled by the tree created from XML in another frame

I have an XML file: <root> <foo> <!--Content Here--> </foo> </root> Now I want generate an HTML file from it. The HTML has two vertical frames. The left one displays the treeview of the XML file. And I want the right one display content of the tree view: when I click on the "foo" node, the content will be displayed on the righ...

Append an xml document to an xml node in C#?

How can I append an XML document to an xml node in c#? ...

Literal XML (unescaped) parameter in ZSI

I'm using ZSI to talk to a SOAP web service. One of the methods expects a literal XML string wrapped in a CDATA tag. How can I make it so that ZSI will NOT escape the string? For example, I want to pass the following as a parameter: <query> <name>Elmer Fudd</name> <age unit="years">33</age> <job>Wabbit Hunter</job> </query> I d...

Finding out what caused equals() to return false

How can I find out what caused equals() to return false? I'm not asking about a sure-way, always right approach, but of something to aid in the development process. Currently I have to step into the equals() calls (usually a tree of them) until one of them is false, then step into it, ad nauseam. I thought about using the object graph,...

Find or Create Element in LINQ-to-XML

I want to set the value/children of an element that may or may not already exist. If the element doesn't exist, I want to have it automagically created for me. This way, my code only has to worry about the contents of the element... not whether or not it already exists. (By the time I'm done with it, it's guaranteed to exist). Does th...

JSON parsing with XML containg XML

I have a ‘workitem’ (cut down xml) which contains the following: <dataModel> <outputs name="CustomerId" type="string" value=""/> <outputs name="City_and_State" type="string" value=""/> <outputs name="CustomerName" type="string...

How to disable XML DTD validation in Oracle DB?

Hi I am using following statement in select portion of the query: extract(XMLTYPE(doc.payload),'/SHOW_SHIPMENT_005/DATAAREA/SHOW_SHIPMENT/SHIPMENT/SHIPITEM/DOCUMNTREF/DOCUMENTID') it works well if the doc.payload contains XML without DTD declaration, but raises an error when DTD declaration is present as Oracle tries to validate the d...

Fill class properties generated from XSD.exe

OK, I generated C# classes from my huge XSD file. Now I have a set of C# classes, XSD schema and actual XML data. Is there an automatic or semi-automatic way to fill these class instances with XML data that I have? Thank you. ...

New and improved with clarification: XML feed design best practice for structured data when there is no pre-existing DTD/Schema

When designing an XML feed for structured data, what is good practice, and what anti-patterns are there? I'd like answers that cover XML structure and content, and/or transport mechanisms. Transport Mechanisms With current technologies is FTP/SFTP a good technology? Are there cases where it is the best fit as a solution? Generally I...

Flex 3: synchronously loading an xml file

My question is very simple: In flex3, is there a way to load an xml file synchronously? I know how to load asynchronously, using a load event. This may be useful, or may not. I just want to read the file, parse it, do what I have to do with it, and continue executing code. I have a component that uses an xml file to store some configu...

XSLT: Walking a tree-like structure

I have an xml document, that has a list of categories: <categories> <category id="1" parent="0">Configurations</category> <category id="11" parent="13">LCD Monitor</category> <category id="12" parent="13">CRT Monitor</category> <category id="13" parent="1"">Monitors</category> <category id="123" parent="122">Printer<...

NHibernate set mapping is not DRY?

I'm not an advanced NHibernate user, so this may be somewhat important, and I just didn't discover it yet.. but what the heck. Consider the class: public class House { public int Id { get; set; } public ISet<Room> Rooms { get; set; } } When specifying NHibernate Set element it's not enough to write: <set name="Rooms" /...

Best way to use an InputStream regarding persistance and XML

Hi, I have a REST webservice that listens to POST requests and grabs hold of an XML payload from the client and stores it initially as an InputStream i.e. on the Representation object you can call getStream(). I want to utilise the XML held in the InputStream and I am begining to think it would be wise to persist it, so I can interroga...

How can i store attributes of an xml node in an array of strings?(Reframed)

Duplicate of how can i store the attributes of an xml node in an array of strings, you should edit the original question. I am a newbie so I am reframing earlier asked question. I have a project where my xmldoc is created with help of XmlDocument class and then loaded with the help of xmldoc.Load() method.With the help of addnodes() met...

How to send a big XML to client in ASP.NET effectively?

For a instance we have some IHttpHandler. where we have two valiables: XmlElement xmlResponse - contains a really big XML. HttpContext context - current HttpContext. The simple solution: context.Response.Write(xmlResponse.OwnerDocument.OuterXml); but when a XML is really big we can get OutOfMemoryException at that line. A call stack ...

xml crosswalking

having several xml (with different schemas), i need to cross walk them to a destination xml. any suggestion about a tool or a common methodology to accomplish this? how i can express mapping between schemas? relational db? (rdf? better not) thank you ...

Enumerated Values based on distinct ones XSLT 2.0

I have a long list of values in XML with named identifiers. I need to make separate output files for each of the distinct identifiers grouped together and uniquely named. So, for example, let's say I have: <List> <Item group="::this_long_and_complicated_group_name_that_cannot_be_a_filename::"> Hello World! </Item> <Item ...

How to get data from xml that is sent to my script via http post?

A vendor is going to be sending me some xml via an httppost to a script I am going to make. The script, when receives the httppost I need to somehow get the data from the xml and put it into my data-base. I do have experience with all 3, PHP MYSQL and XML. I do know how to get values from XML using E4X but I do not know how to get value...

IndexOutOfRangeException on accessing attributes through String array?

I have a treeView displayed on a winform.Now when i click on an xmlnode in the treeview its attributes get displayed in the listbox.Now i have divided the whole logic in UI and back end part. Now what i want that my back end class contains the method to display atrributes(name and value) of the xml node clicked and these are stored in an...