xml

Spring / ActiveMQ schema validation from behind a proxy

Hello, I'm trying to run this JAX-RS web services which uses ActiveMQ and Spring, and have some definitions relating to both in the Spring context xml file. If i'm not behind a proxy, everything runs fine. However, when i'm behind a proxy, I get the following validation error: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The ...

Get the selected text and put it in variable

I have the following code which loads a xml file to populate a dropdown. I would like to put the selected options text into a variable. I already got the value of the selection but not the text. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http:...

Xpath equivalent to http://gskinner.com/RegExr/ for Regex?

I wonder if there is a Xpath equivalent to http://gskinner.com/RegExr/ for Regex? In this way you could just type an xpath query and it will show you what elements were selected. I haven't found anything as simple as http://gskinner.com/RegExr/ yet. ...

Is there an XML example for HTTPRiot and iPhone?

My problem is that I am both new to iPhone development and also to using this HTTPRiot class. The goal is to have a generic XML parser and this class seems to do the trick from the completed demos, but what I haven't been able to find is a barebones implementation tutorial. What I'm not seeing is the delegate methods being invoked on t...

Xpath and HTML Cleaner problem, no data returned.

Hi, new to the community. been up all night trying to flesh out the underlying html reading system that's at the core of my app's functionally. I could really use a fresh pair of eyes on this one. Problem: While trying to return a string to be displayed on my app's home activity, I've run into an issue where I'm almost certain that th...

Merging XML files

Hello! How do I merge multiple XML files, without having redundant data? I have a project using OpenStreetMap, and the data dumps are in XML format. But becuase I plan to divide my target area in the map, then some nodes(points in the map) will be repeated in the XML files. I want to merge all that XML files, and prevent redundant data i...

How do I implement seekg() for a custom istream/streambuf?

I used to be a C++ expert a decade ago, but for the past 10 years I've been programming Java. I just started a C++ project that uses a small third-party XML parser. The XML parser accepts an STL istream. My XML data is coming from a Windows COM IStream. I thought I'd do the Right Thing and create an adapter to take the IStream data and p...

How to sort an XMl using XSLT 1.0?

I'm looking for an XSL to sort and group an XML by a node and sum by another node. I will have to use XSLT 1.0. Here is my XML. After sorting I need to have a new XML sorted and Grouped by <TransCode>, and all <TransAmt> should be summed for each group. I'm looking for the XSL for this task. Any help is appreciated. After sorting n...

Wrong column types with SQLXMLBulkLoad

Hello, I am trying to bulk isnert XML Data into SQL Server 2008 Express with SQLXMLBulkLoad Object Model from C# (Visual Studio 2010). My problem is that I am stuck with the relationships. Consider the following annotated XSD file: <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" ...

Objective-C Library for RSS feed parsing?

I'm looking for an Objective-C library for an iOS app that will parse and display articles form an RSS feed. Specifically,m I'm looking to make an app for a news website. The framework should be able to work with various RSS XML structures if possible. (Well, two different news sites. One uses Wordpress-generated RSS and one does not.) ...

How do I evaluate PHP string as a variable?

I have a variable named $data["main_deal"] that has the value $xml->deals->deal[0] (as a string). $xml is a simpleXML object, and the value of main_deal is the selector needed to access the data I want. When I tried echo "<p><b>Main Deal:</b> ".$data["main_deal"]; it output: Main Deal: $xml->deals->deal[0] So I went back to where I gav...

Data Flow Task, XML Source error

I am developing an SSIS application with VS and SQL Server 2008. I am still new to SSIS, however. I have successfully created one project with an XML Task connected to a Data Flow Task. But as part of this same solution I created an identical project with XML Task connected to Data Flow Task. From what I can see, the only difference b...

Basic XSLT example

I'm just getting started using XSL to transform XML to HTML and I'm hopping to get help with the following to help me dive in. Given XML like the following (A): <Course Title="SampleCourse"> <Lesson Title="Overview"/> <Section Title="Section1"> <Lesson Title="S1 Lesson 1" /> <Lesson Title="S1 Lesson 2" /> </Section> <Se...

Apply XSLT on XML to get Formatted (colour) Output

How can I apply XSLT on following XML so string between ~ and $ becomes Red in output. The following XSLT work when you have only one string which contains ~ and $. it will not work when you have more than one string which contains ~ and $. info I am using the same template for DATAC ' I am using Java to compare Strings. I have a o...

hexadecimal value 0x00, is an invalid character: still encounter problem after replace \0 with ""

Hi guys.. I have a problem with my code. I used ASP.NET with Visual Studio 2010. When i retrieve a data from database to a datatable in a webservice, some column give me a empty string data. This caused some problem with the XML retrieved and displayed. I try to put a Replace ("","") to replace \0\0\0. THis one can solve the problem. B...

Problem with adding xmlns attribute to XML document using XSL

Hi all: I have the following in my XSL which adds a xmlns to my XML. <xsl:template match="root"> <xsl:element name="root" namespace="myXslLoc"> <xsl:attribute name="Name">Default</xsl:attribute> <xsl:apply-templates/> </xsl:element> <xsl:template> The above does add a xmlns attribute to the root element (the t...

XUL / XML Parsing Error: undefined entity <listitem

Does anybody know why this error is poping up ? <?xml version="1.0"?> <?xml-stylesheet href="chrome://onsip/content/options/options.css"?> <!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd"> <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="onsip-options-dialog" title="OnSIP Opt...

xml data text + binary

Hello all, I built iphone app that getting inforamtion from server(this is server that i built also). the data from the server is type XML and i use the xml parser to parse the message. what i want is to add image to be send from the server and i am asking if i cann add binary data such image to the xml message.for example 10 tags will b...

Magento: Move product group info to the bottom in the product view

I'm trying without success to move a block with is referenced in the catalog.xml file: <PRODUCT_TYPE_grouped translate="label" module="catalog"> <label>Catalog Product View (Grouped)</label> <reference name="product.info"> <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data...

load xml into dataset with column filtering

i would like to load xml into dataset with only 2 columns (name, price) <?xml version="1.0" encoding="utf-8" ?> <file> <record> <name>A</name> <address>B</address> <date>12-12-2010</date> <price>100</price> </record> <record> <name>B</name> <address>C</address> <date>01-01-1999</date> <price>23</price> </...