xml

Truncate XML with XSLT

Hello, I have a question for the clever people of the SO community. Below is a snippet of XML generated by the Symphony CMS. <news> <entry> <title>Lorem Ipsum</title> <body> <p><strong>Lorem Ipsum</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada au...

What is the best column for storing XML in an Oracle database?

Hi! I'm looking for the best way to store XMLs in a Oracle Database. Currently we use a BLOB type column but I'm pushing to move this column to a XMLType or an XMLType schema based column. I've just found this article XML: To CLOB or Object? from Oracle and read it but I haven't made up my mind yet. So has anybody experienced this same ...

Can StringBuilder be emulated in XSLT?

I am trying to emulate StringBuilder behavior in an XSL. Is there a way to do this. It seems pretty hard given the fact that XSLT is a functional programming language ...

Can I link xslt to another xslt?

Basically I want to have one xslt to become my 'base' xslt and want to link this into child xslt files. Is this possible? The aim is to reduce code duplication. We will have many child xslt files for the various customers all with their own formatting and additional text etc and don't want to repeat the base code for each client xs...

how to skip well-formedness check XML

Hi, I am using Xpath (and java) to extract information from some websites. However my problem is that since some of these websites are not well-formed, I cannot process them. Is there any way to avoid well-formedness check or alternatively specify tags that should'nt be checked for well-formedness? Thanks Rp ...

C# webservice needs to convert SOAP to REST on the fly.

I am trying to write a translation layer for a test system for which I am writing software. I am using LabVIEW for the test system and that uses a RESTful webservice. I have implemented the REST Methods and they are working OK. The remote Test controller and data service layer etc are written in C# and SQL and these are the items I have ...

searchbox : autosuggestion with XML

Hi.. I want to make a searchbox which has auto suggestion and searches specific tag in a XML file. How can i realze this ? ...

Storing a 2 dimensional table (decision table) in XML for efficient Query(ies)

Hi, I need to implement a Routing Table where there are a number of paramters. For eg, i am stating five attributes in the incoming message below Customer Txn Group Txn Type Sender Priority Target UTI CORP ONEOFF ABC LOW TRG1 UTI GOV ONEOFF ABC LOW TRG2 What is the best way to represent th...

How to refer to current node value in XSL for-each test?

Let's say I have an XML doc like this: <books> <book>1110</book> <book>1111</book> <book>1112</book> <book>1113</book> </books> I'm trying to setup a condition that tests the value of the current node in the for-each, but I'm doing something wrong: <xsl:for-each select="/books/book"> <xsl:if test=".[='1112']"> ...

How do I handle xslt script code samples?

I'm getting fatal error http://www.w3.org/2006/xqt-errors#XPTY0004 in XSLT scripts I've created using Notepad, UltraEdit or Help text published to the web. These tools show nothing no strange characters, but the script breaks unless I manually edit the input so it is all on one line (usually need tor recreate every blank character). Tedi...

How to Overwrite the file saved in the Context Directory...

I created two files 1)index.html 2)player.jsp I am using Tomcat Server. In the index.html i created some checkboxes in a form and assigned the values... After clicking submit i forwarded these values to player.jsp... In player.jsp i dynamically generated an xml file named "generate.xml" . This XML file changes according to the user requ...

TouchXML unable to parse YQL result XML on a iPhone

Problem 1: Has anyone worked with TouchXML, I am facing problem parcing rssfeed that has characters like & or even & The parser takes the url as input and doesn’t seem to parse the XML content. NSXMLParser has no such problem for the same feed URL. Problem 2: Another problem with NSXMLParse is when the foundCharacter() method finds “\n” ...

Converting specical characters in XML stream

I have an XML stream which contains special characters such ' stored in a CString object. Is there any method other than replacing individual characters in the stream to convert these special characters ? ...

Why does getRealPath() return null when deployed with a .war file?

Hi, getRealPath() is returning the actual path in the local system, but returns null when deployed with a .war file. <%@ page import="java.io.*" %> <%@ page contentType="text/html;charset=ISO-8859-1" %> <% int iLf = 10; char cLf = (char)iLf; String a= application.getResource("/"); //String myfile = application.getRealPath("/")+ "gener...

XPath + Namespace Driving me crazy

Its a .vbproj and looks like this <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <PropertyGroup> <ProjectGuid>15a7ee82-9020-4fda-a7fb-85a61664692d</ProjectGuid> all i want to get is the ProjectGuid but it does not work when a namespace i there... Dim xmlDoc As New XmlDocum...

Inserting an attribute in multiple XML Nodes using XML.modify() in SQL 2005

I have an @XML document created from a single select statement. <root> <node> <node1> <targetNode> </targetNode> </node1> <node1> <targetNode> </targetNode> </node1> <node1> <targetNode> </targetNode> </node1> </node> <node> ...... </node> </root> I want to insert the xsi:nil as an attribute of 'ta...

XSLT - Recursively Working Outwards

I understand how to process this doc (below) with XSLT from the outermost person element to the innermost. But I was wondering if: 1) If its possible to work from the deepest element out. 2) What that would look like given my example. <?xml version="1.0" encoding="utf-8" ?> <container> <person name="Larry"> <person name="Moe"> ...

xsd schema validation

Hi all, I am having an issue with xsd schema. I have a following schema defined: <xs:element name="nodes" type="nodesRootType" /> <xs:complexType name="nodesRootType"> <xs:sequence minOccurs="1" maxOccurs="unbounded"> <xs:element name="node" type="nodeType" /> </xs:sequence> </xs:complexType> <xs:complexType name="nodeTy...

How can I use Nant's xmlpoke target to remove a node

Given the following xml: <rootnode> <childnode arg="a">Content A</childnode> <childnode arg="b">Content A</childnode> </rootnode> Using XMLPoke with the following XPath: rootnode/childnode[arg='b'] The result (if the replace string is empty) is: <rootnode> <childnode arg="a">Content A</childnode> <childnode arg="b"></c...

How do i write the literal "]]>" inside a CDATA section with it ending the section

Pretty simple question, I'm writing an XML document and i'm not sure how to write "]]>" without it being seen as the end of the section. ...