xml

Castle Windsor: How to break up my wire-up xml file into multiple files?

I remember seeing in a sample a while ago that it is possible to break up a windsor configuration file into multiple ones and reference them from the app.config in a way that they get parsed automatically. Of course I didn't bookmark it and now I can't find it and my Windsor.Config.xml file is creeping up on 600 lines. Can anyone tell ...

Read/Write/Modify XML

Hi, I have a XML File like that <?xml version="1.0" encoding="utf-8" ?> <Configurations> <EmailConfiguration> <userName>xxxx</userName> <password>xxx</password> <displayName>xxxxx</displayName> <hostAddress>xxxx</hostAddress> <sslEnable>xx...

Embed xsl into an XML file

I'm trying to embed an xsl into a XML file. The reason for doing this is to create a single file that could be moved to different computers, this would prevent the need to move the xsl file. The xsl file is creating a table and grabbing a test step from the xml and whether it passed or failed, pretty simple. The issue I'm having, I t...

Reading an XML File using FileInputStream (for Java)?

Hi everyone, here's the deal. For my project I have to serialize and deserialize a random tree using Java and XStream. My teacher made the Tree/RandomTree algorithms, so I don't have to worry about that. What I don't know how to do is this: I am using FileInputStream to read/write the xml file that I serialized and deserialized, but ...

How to ignore Unexpected element situation in JAXB?

How can one ignore Unexpected element situation in JAXB ans still get all other kind of javax.xml.bind.UnmarshalException? obj = unmler.unmarshal(new StringReader(xml)) Notice i still want to get the obj result of the xml parsing. ...

Proper use of HTTP status codes in a "validation" server

Among the data my application sends to a third-party SOA server are complex XMLs. The server owner does provide the XML schemas (.xsd) and, since the server rejects invalid XMLs with a meaningless message, I need to validate them locally before sending. I could use a stand-alone XML schema validator but they are slow, mainly because of ...

Outlook XML View Definition

Is there any complete Outlook XML View Definition, beside http://msdn.microsoft.com/en-us/library/aa140157(office.10).aspx, which is not complete, and is for Outlook 2002? ...

How to avoid XML injection

I have input field value from that is used for forming XPath query. What symbols in input string should I check to minimise possibility of XML injection? ...

Nesting SAX ContentHandlers

I would like to parse a document using SAX, and create a subdocument from some of the elements, while processing others purely with SAX. So, given this document: <DOC> <small> <element /> </small> <entries> <!-- thousands here --> </entries> </DOC> I would like to parse the DOC and DOC/entries elements...

How to Deserialize XML document

Hi, How do I Deserialize this XML document: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Model>Sentra</Model> </Car> <Car> <StockNumber>1010</StockNumber> <Make>Toyota</Make> <Model>Corolla</Model> </Car> <Car> <StockNumber>1111</StockNumbe...

XML to CSV Using XSLT

I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008 0:00:00</startDate> </project> <project> <name>Other</name> <language>Erlang</language> <owner>Takashi Miike</owner> <state> C...

Xpath sibling conditional testing?

I'm using VB.net (2003), and calling the SelectNodes method on an xml document. If I have a document: <InqRs> <DetRs> <RefInfo> <RefType>StopNum</RefType> <RefId>0</RefId> </RefInfo> <RefInfo> <RefType>Id</RefType> <RefId>0</RefId> </RefInfo> </DetRs> <DetRs> <RefInfo> <RefType>Sto...

Architecture and caching considerations with large XML files

I'm building a website to display products, and categories of products. The data comes from an external service in the form of a 500k XML file. The website is ASP.NET, C#. The XML is structured as a list of categories. Inside each category might be some products and/or some more categories. Obviously, we cannot call this external servi...

How do *you* use XML within the world of web applications?

Background I'm researching the efficiency of messaging within contemporary web applications, examining the use of alternatives to XML. This is a university project whose results will be released publicly - the greater the participation of the community, the greater the value of the results that are given back. I need as many real-life e...

What is the best approach for building an iphone client for a rails app?

I have a fairly standard rails app and would like to be able to access the basic CRUD (Create, Update, Delete) operations as well as queries I have added, from an iPhone app. Rails provides the REST API for these operations more or less out of the box. What is the best approach to deal with the REST/XML part on the iphone, and are ther...

how to change xml value file using c#

Hi, How can I change one value (attribute) in xml file, using C#/ Thanks, ...

Finding an XmlNode by attribute in ASP.net

Hi, I'm trying to write some code to find a specific XmlNode object based on the URL in the XML sitemap but can't get it to find anything. The sitemap is the standard ASP.net sitemap and contains: <siteMapNode url="~/lev/index.aspx" title="Live-Eye-Views"> --- Child Items --- </siteMapNode> The code I'm using to search for the eleme...

XmlTextAttribute and CDATA

We have a part of our application where our users can create objects containing html, javascript and css through custom made Wysiwyg components. Those objects are at some point serialized and later deserialized. However, since our users/clients are located all over the globe, they sometimes input characters that cause grievance during de...

API Design: Expose XML or Objects

We're embarking on a new middle tier service that will allow internal client systems to create and update and query records in some underlying data stores. The service will aggregate as many as 3 seperate underlying datastores. For the purposes of this question assume: Data store #1: Proprietary XML Database. Data store #2: Off the ...

How to get tag name of root element in an XML document w/ XSLT?

Hi all, I'm interested in assigning the tag name of the root element in an xml document to an xslt variable. For instance, if the document looked like (minus the DTD): <foo xmlns="http://....."&gt; <bar>1</bar> </foo> and I wanted to assign the string 'foo' to an xslt variable. Is there a way to reference that? Thanks, Matt ...