xml

LINQ Select Distinct while ignoring the XML field

Hello, I have a complex LINQ query (using LINQ 2 EF) that can return duplicate results and I'm thus using the .Distinct() method to avoid duplicates. Here's the skeleton: var subQuery1 = // one query... var subQuery2 = // another query... var result = subQuery1.Distinct().Union( subQuery2.Distinct() ).ToArray(); Each of the sub que...

Sample ARB Request Update XML

Hi Everyone, Can anyone give me a sample xml of ARB Request Update? I need to update the amount and the subscription name. Thanks.. :) I already read the ARB XML guide but I am having problem with the syntax when updating an ARB. ...

In SQL Server, xml data are saved in a text column, how to query from this column?

Hi, In my situation, xml data are saved in a text column, how to query this against this column? For example: create table t1 ( id INT IDENTITY(1, 1) PRIMARY KEY, content text ) insert into t1(content) values ('<?xml version="1.0"?> <people> <person> <firstName>ooo</firstName> <lastName>ppp</lastName> ...

Is there such a thing like a Printer-Markup-Language

I like to print a document. The content of the document are tables and text with different colors. Is there a lightwight printer-file-format which i can use like a template? PS, PDF, DOC files i think are to heavy to parse. May there exist some XML or YAML file format which i can Easy create (maybe with a WYSIWYG-Editor) Can parse and...

xpath expression from xml with namespace prefix

Hi, I could not get the following xpath expression to work when the xml path namespace prefix set. /bk:BookStore/bk:Books/bk:Book[text()='Time Machine'] XML is: <bk:BookStore xmlns:bk="http://www.bookstore.com/book#"&gt; <bk:Books> <bk:Book id="1">Time Machine</bk:Book> </bk:Books> </bk:BookStore> ...

Is there any XML lint maven plugin?

I'm trying to validate my XML resources during maven build cycle. Is there any plugin for this purpose, or I should use ant + xmllint manually? ...

HTML UL Menu from XML

Hi, i am receiving xml structured data which is not nested and I need to create UL menu out of it. Data is receiver using .ajax jquery .. please for any idea. Even if I fix output of XML i don't know how to achive this. Structure of XML (sample values) : <data id="1"> <skItem>Food</skItem> <psItem>Item1 </psItem> <vssItem>val...

XML Marshalling + Project structure

I want to create a spring-ws web service that eventually marshals a POJO into xml. I'd also like the clients of the web service to unmarshal the xml back into the POJO. How should I structure the projects? Currently my thinking is: Domain and business layer project - has the ability to query mainframe and create POJOs. This project ha...

Speed of Groovy XML Slurping

We're starting to investigate a project that requires a tricky bit of XML parsing. I like the look of Groovy's XmlSlurper (Groovy appears to be my Golden Hammer of choice at the moment). We'll need to process a pretty wide range of XML inputs and Groovy's dynamic nature might just let us work out a neat, concise solution. We'll see. A ...

Problem loading Bytearray into XML object. (Flex 4)

I get Index out of bounds when trying to readObject on my Byte array into the XML object. private var fr:FileReference; private var data:ByteArray = new ByteArray(); [Bindable] private var dataXML:XML = new XML(); ... public function onLoadComplete(e:Event):void { trace("Load Complete"); data = fr.data...

How to fetch data from xml string to variables in objective c?

Hello, I am new to objective c. I am right now working on the web service based application.I am using .net webservice that i would like to point out. The thing is that using XML code,i am able to fetch the XML string in a simple string variable,but i cant get how to get data from the same in different variable. <?xml version="1.0" ...

Android: Custom tabinterface change tab colors, tabwidget

Hi All, I have a problem with my tab style. I would like my tab style will look like this. http://www.technobuzz.net/wp-content/uploads/2010/02/seesmic-android-260-208.png Something goes wrong in my xml ... The style shows only the colors When selected (see comment). When I use a white icon is the text (text setindicator) white. This ...

Documentation Generator for Ant Builds

Hello, I am currently writing some comments for my ant targets just to help document the purpose of each and how they work. Is there a defacto standard or useful utility available to generate documentation off these. Something like JavaDoc or PHPdocumentor perhaps? Regards, Steve ...

Howto use XSD generated class to fill and adjust XML

Hi, using xds.exe i created following class: namespace vgtunesWPF { [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType...

Adding a stylesheet declaration to ci_reporter xml files automatically

Hey all, I am not a programmer, so please be forgiving if my problem is fairly easy to solve for many of you (yet I still might find it confusing). The problem I am having is with ci_reporter, a gem for use with Watir and Test/Unit. It is outputting the test results from a Watir test to an xml file. Great so far. Unfortunately I can...

Sitemap(XML) validation problem

Hello, I have followed the sitemap standards specified in the following sites while building the sitemap for my site. 1.http://www.wordsinarow.com/xml-sitemaps.html 2.The google webmaster central: 3.Sitemap protocol: The sitemaps are generated in XML format and posted to the website http://validator.w3.org/ for validation. The two inp...

regex to parse tables wrapped into xml

Suppose we have a table: Key|Val|Flag 01 |AAA| Y 02 |BBB| N ... wrapped into xml this way: <Data> <R><F>Key</F><F>Val</F><F>Flag</F></R> <R><F>01</F><F>AAA</F><F>Y</F></R> <R><F>02</F><F>BBB</F><F>N</F></R> ... </Data> There can be more columns and rows, obviously. Now I'd like to parse XML back to table using single regex...

Doctrine Class Inheritance in XML

I'm trying to setup class inheritance using the Doctrine 2 ORM, but am getting errors (even when following their examples). I'm using the console from a Symfony 2 sandbox. The simple example uses the classes Person and Employee; An Employee extends Person. The error I'm getting when trying to generate the entities is: [Doctrine\ORM\M...

Can an XMLDocument object be use with an XPathDocument object?

I have a static method that converts a html file and returns an XMLDocument object. After doing extensive research, the following question has arised: Can pass an XMLDocument object to a XPathDocument object, to make it easy when simply reading data from the document and not editing it. Research01 MSDN Please reply and let me know i...

Has PHP a function to ENCODE a MySQL Table into XML like ...?

<?xml> <table> <row> <columnA>ValueA</columnA> <columnB>ValueB</columnB> <columnC>ValueC</columnC> <columnD>ValueD</columnD> <columnE>ValueE</columnE> </row> <row> <columnA>ValueA</columnA> <columnB>ValueB</columnB> <columnC>ValueC</columnC> <columnD>Valu...