xml

For basic XSL-fo tags to work do i need to install a FO- processor..???

I am new to XML... and i am forced to look at XSL-FO. My simple question is that using XSL-fo, i am not going to do any pdf generation work.. rather I just want to check on XSL-fo with its basic tags. I am to work in dotnet environment in Visual Studio. So to go ahead with this do i need a seperate FO Processor or there will be enough su...

Convert XML file to DBF

Hi, I'm trying to convert an XML file to DBF. Right now I do this manually, opening the XML file in Excel 2003 and saving it as a DBF 4 file type. This is a boring and time consuming process, made worse by the fact that neither Office 2007, nor Office 2008 for Mac allow saving as DBF any more. I'd like a way to automate this, if possib...

How do I escape unicode character 0x1F in xml?

I need to write a text with the unicode character 0x1F in a utf-8 document (it is not an allowed character in xml). Is there a way to escape it, or do I have to discard it? ...

Generic Xml Document manipulation

We have xml documents that contain lots of flagged nodes like isProduct, isActive , isMandatory where the node text may be True or False. It is needed to manipulate the documents and keep their structure but convert the above nodes into a verbal representation like below: < isProduct >True</ isProduct > ===> <Type>Product<Type> < ...

XSLT. load xml document that contains escape characters

I use XSLT to transform an XML document which I then load on to a ASP.NET website. However, if the XML contains '<' characters, the XML becomes malformed. <title><b> < left arrows <b></title> If I use disable-output-escaping="yes", the XML cannot be loaded and I get the error "Name cannot begin with the '' character". If I do not di...

C# newbie: reading repetitive XML to memory

Hello, I'm new to C#. I'm building an application that persists an XML file with a list of elements. The structure of my XML file is as follows: <Elements> <Element> <Name>Value</Name> <Type>Value</Type> <Color>Value</Color> </Element> <Element> <Name>Value</Name> <Type>Value</Type> ...

Eliminating duplicate same-level elements in XSLT

I'm looking to display a list of same-level node names, without duplicates. Let's say I have <a> <b> <c /> <d /> <d /> </b> <b> <e /> <c /> <f /> </b> </a> I'd want c,d,e,f to be displayed. I've found several solutions to a similar problem, eliminating duplicate siblings...

How to get around the "xs:group cannot be placed inside xs:all" limitation?

Is there any reason why <xs:group> cannot appear inside <xs:all>, but only inside <xs:sequence>? Let's see an example. Say, there is a list of tags (<a> to <d> and <e> to <f> - see example below) which do not appear in any particular order, but always wrapped into another object (either <foo> or <bar>); <foo>={<a>, <b>, <c>, <d>}; <bar>...

Is there a standard Java utility to parse XSD files at runtime?

I've been looking around for a way to programmatically parse XSD files to generate an XML mapping so that I can take any XSD file and create a parser that will parse any XML file that conforms to it, and my google-fu has been coming up short. XSOM looks promising, as it will parse an XSD file and make all its attributes available in a ...

What is right way to code input parameters with complex types for a C# .net 2.0 WebService?

I am currently building a new version of webservice that my company already provides. The current webservice has an input parameter of type string. In that string an entire xml doc is passed. We then validate that string against an xsd (the same xsd given to the consumer). It looks something like this: [WebMethod] public bool Upload...

Command-line XML validator for Windows

I've always found validation against a schema to be an invaluable ward against thinkos and would like to incorporate validation checks as part of a project where I frequently need to hand-write XML files a few hundred lines in length. My text editor has a fairly nice CLI integration feature, so I'm looking for a command-line validator. ...

C# XmlElement: SelectSingleNode returns null for empty string?

Hello, I'm new to C#, and just started using XmlElement and its SelectSingleNode method. In my XML file there's a tag that may have a value (i.e. <tag>value</tag>) or be empty (i.e. <tag></tag>). If it's empty, SelectSingleNode returns null. I'm currently using the following code to catch the value of the tag: XmlElement elem = .... ...

Best tool for monitoring Coldfusion interoperability with .Net web service

Is there a tool to see the message sent to webservice hosted on an IIS server? I have a webservice written in .Net and our ColdFusion people are having trouble building a "complex" parameter. This problem is described from a ColdFusion perspective at: adobe forum question It runs when called from a .net client. While hosted on a server...

how can I parse xml data in php

Hello, I am trying to find out how this would work For testing purposes, I have made two websites. One is calling a REST service from the other I pull the xml data with file_get_contents if I echo it, I can see a string off data. But how can I use simpelxml on it, extract data from the nodes themselves? If I use simplexml_load_fil...

XML query against SQL Server SSIS DataProfiler xml file in Powershell does not work. Help?

Hi, I am trying to query out the attribute values from the xml file attached below. Specifically, I am trying to get the Name, SqlDbType etc. attribute values that are in the "Column" Element Node under"ColumnNullRatioProfile" Node. The xml output file comes as a part of the SQL Server 2008 SSIS DataProfiler Task. My goal is to use Pow...

How can I update a specific XElement?

Hi, What is the best way to update an XElement (update the value of itemNumber of element Pen) in this XML? <?xml version="1.0" encoding="utf-8"?> <MyStore> <Category> <itemName>Pen</itemName> <itemNumber>12</itemNumber> </Category> <Category> <itemName>Paper</itemName> <itemNumber>23</itemNumber> </Category> <...

Using HTML elements inside an XML loaded by Flash

I am trying to use html elements to style text inside an XML file that is loaded and displayed by flash. When I do this the text will not display at all. Here is a chunck of my XML : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Page> <Title>You should be <b>Bold</b> ! </Title> <Page> When I try the code below, it disp...

problem with sending xml (declaration xml) with php

Hello, my question is actually What kind off structure would I use to send xml as part off a REST service if I have most off the logic in a class. I call/include the class at the top off my php index page if it becomes clear a service is being requested. Someone mentioned to me that a class method should not output anything. Then wher...

C#: Sanitize XML text values with XmlTextWriter?

Hello, I'm using XmlTextWriter to serialize and persist some of my data. Several of the fields I serialize are based on user input (e.g. Username). Today I use the WriteElementString method of XmlTextWriter. My question is: the second parameter of WriteElementString is the text value to be written. How can I sanitize it prior to writi...

libxml for C++: How to add a root node to XML tree?

I have an xml file that looks like the following <siteinfo> ... </siteinfo> <page> <title>...</title> <revision> ... <revision> </page> It does not have a root/enclosing node so I get the "extra content at end of document" on running my program. After opening the file for parsing using libxml, is there a way to easily add ...