xml

A interesting question about the xsl processing

I am using xsl to transform a xml to html. A table is created in the html but some problem of the unduplicated items appear. If I use a unique key to form the table(xsl for-each of every row), for example, context, but this attribute is not in the table. the final table is like this context(invisible) attr1 attr2 attr3 1 ...

how do i get accented characters to display in Fusion Charts graphs?

im using fusion charts to map data. the labels for the data are country names which we localise into languages that have accents, for ex österreich being german for austria. the data and labels are set in an xml file. for some graphs the accents show by using the decimal equivalent, so ö shows an ö. on other graphs the decimal, ent...

Escape quote character in xml

Is there an escape character for a quote in xml? I want to write a tag like: <parameter name="Quote = " "> but if I put ", then that means string has ended. I need something like this (c++): printf("Quote = \" "); Is there a character to write before the quote to escape it? ...

Getting location of XML document in XQuery

I'm using Oxygen XML to to work with an XML file that contains references to other XML files. These other XML files are stored in a subdirectory of the directory that contains the main XML file. Downloads/ directory1/ main.xml subdirectory1/ other1.xml other2.xml The locations of the other XML files are stored as relative ...

What is the type of XQuery passed to SQL Server XML Data Type methods?

According to BOL on value() Method (xml Data Type), value() method takes two arguments XQuery SQLType Do I need to pass varchar or nvarchar to value()? How can I find out what kind of type XQuery or SQLType expects? End Goal: To create utility UDF/sprocs that uses XML Data Type methods. ...

Parser error using Perl XML::DOM module, "reference to invalid character number"

I am a complete Perl newb, but I am certain that learning Perl will be easier than figuring out how to parse XML in awk. I would like to parse the .sgm files from this dataset: http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html This is a collection of 20,000 Reuters articles from newswire from a decade ago, and is a stand...

Accessing only one element that has a shared name in an XML DOM using jquery

I'm having trouble accessing only one XML element that has the same name as other elements (i this case, the tag "name"). How do I access ONLY the "wantedName" below using jQuery? <sample> <input> <value>0.2</value> <name>varName</name> </input> <name>wantedName</name> <output> <value>4</value> <name>varName2</name...

Auto logon on SEAM + JSF

My webapp needs to auto-login when the user access the app url: example: http://myapp/home.xhtml?token={3bcdc006-05fc-4ce1-953a-17375edcf2a2} on my pages.xml i have the following: <pages xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com...

What's the state-of-the-art in Python programming in Windows?

I'm looking to set up my development environment at home for writing Windows applications in Python. For my first piece, I'm writing a simple, forms-based application that stores data input as XML (and can read that information back.) I do want to set up the tools I'd use professionally, though, having already done a round of didactic p...

"Unrolling" a string with XSL

We have an application which has a heirarchical group structure. Some of the groups are passed in this format: /Geography/NA/US/California I would like to "unroll" this string so that I can get a node set like the following: /Geography /Geography/NA /Geography/NA/US /Geography/NA/US/California I know I can use str:tokenize and get ...

Using LINQ to XML to Process XML in Multiple Namespaces

I'm trying to parse results from the YouTube API. I'm getting the results correctly as a string, but am unable to parse it correctly. I followed suggestions on a previous thread, but am not getting any results. My sample code is: string response = youtubeService.GetSearchResults(search.Term, "published", 1, 50); XDocument xDoc = XD...

Help with PHP Regular Expressions using a Negative Look Behind

Hello, I'm trying to write a simple function to close missing HTML tags using PHP preg_replace. I thought it would be relatively straight-forward, but for some reason it hasn't been. What I'm basically trying to do is close a missing tag in the following row: <tr> <th class="ProfileIndent0"> <p>Global pharmaceuticals</p> <td>197...

JAXB: Can I make XmlAttribute's parameter "required=true" to default?

Hello! I have @XmlAttribute(required=true) in hundreds places in a projects. Can I make this default?... ...So that I then only need to specify @XmlAttribute(required=false) when needed. ...

Parsing XML in .NET

Hi Fellow StackOverflowers, I am receiving a string in one of my .NET function. The string when viewed from the XML Visualizer looks like this: - <root> - <Table> <ID>ABC-123</ID> <CAT>Housekeeping</CAT> <DATE>21-JUN-2009</DATE> <REP_BY>John</REP_BY> <LOCATION>Head Office</LOCATION> </Table> - <Table> <ID>ABC-124</ID> <C...

Wrapping Serialized Properties in Additional Elements with .NET XML Serialization

Hello everyone, I am using C# + VSTS2008 + .Net 3.0 to do XML serialization. The code works fine. Here below is my code and current serialized XML results. Now I want to add two additional layers to the output XML file. Here is my expected XML results. Any easy way to do this? I am not sure whether NestingLevel could help to do this. I...

LINQ to XML: how do I get only direct descendants of an XElement?

Dim xml = <Root> <Parent id="1"> <Child>Thomas</Child> </Parent> <Parent id="2"> <Child>Tim</Child> <Child>Jamie</Child> </Parent> </Root> Dim parents = xml.Elements In this case, children includes all the Parent elements and all of the...

LINQ to XML: how do I add child elements in a for-each loop?

Dim names() As String = {"one", "two", "three"} Dim xml As XElement = Nothing For Each name In names If xml Is Nothing Then xml = New XElement(name) Else xml.Add(New XElement(name) End If Next The above code will create something like this: <One> <Two /> <Three /> </One> What I need is something like this: ...

Building an XMERL document in Erlang

Hello - Can anyone show me how to build a simple XML document using XMERL? The documentation only shows how to append to a current XML document that is read from a file. I want to create a new XML document from scratch. For example, I want to write a simple structure like this out to an XML file: Data = {myNode,[{foo,"Foo"},{bar,"Bar"...

xml to oracle conversion

Hi, I would like to know whether there are any tools which convert xml data into Oracle tables. I came across Altova's MapForce. But I am not sure whether I could use that for achieving this. Could someone suggest any other alternate option / or any help documentation of Mapforce which talks about this conversion. Thanks, Shafi ...

How to realize derived response (XSD)?

Hey, im searching for the best solution of my xml schema (xsd) I have an response: <xs:element name="exampleCatalogResponse"> <xs:complexType> <xs:sequence> <xs:element name="meta" type="tns:metaType" /> <xs:element name="data" type="tns:defaultDataType" /> </xs:sequence> </xs:complexTyp...