1,599 Topics

Member Avatar for
Member Avatar for shannonkr

I'm trying to create an xsd dictionary for some data migrations, I don't fully understand how to format xsd:pattern values correctly, I was wondering if anyone had any ideas. I have some values that were done already: <xsd:pattern value="[a-zA-Z]{1}([#-. a-zA-Z0-9]*)"/> <xsd:pattern value="([ a-zA-Z0-9]*)"/> But I don't know how to manipulate …

Member Avatar for nmaillet
0
184
Member Avatar for sam230

I am making a project where when you select a city, you will get all the hotels on google map as markers.. now i got two options whether make an external xml file for all the hotels and read that file.. or get result for database.. so friends what you …

Member Avatar for jkon
0
143
Member Avatar for manu555

xml file [CODE] <?xml version="1.0"?> <tiltviewergallery> <photos> <photo id="10" imageurl="images/logo/cb0dc425946c764543897decab7cca56.jpg" linkurl="gallery.php?id=2&amp;gid=10"><title>ascsaas</title><description>sacsac</description></photo> <photo id="11" imageurl="images/logo/1896949a52b7685ebec8bc01862d6d68.jpg" linkurl="gallery.php?id=5&amp;gid=14"><title>sssa</title><description>sassa</description></photo> </photos> </tiltviewergallery> [/CODE] php code [CODE] $sql = "SELECT `id` FROM `galleryimg` WHERE `id`=$id"; $result = dbQuery($sql); $row = dbFetchAssoc($result); //$linkurl = 'gallery.php?id='.$row['id']; //$imageurl = 'imgs/'.$catImage; global $srvRoot; if (file_exists($srvRoot.'gallery.xml')) { $tiltviewergallery = simplexml_load_file($srvRoot.'gallery.xml'); foreach($tiltviewergallery->photos->photo …

0
66
Member Avatar for Dean_Grobler

Hello there, I'm busy working on a project using GWT and Sencha GXT libraries. I have come to this stage that I now have to populate a tree with data received from an XML file... I have no idea how to do this, I've gone through the javaDocs but it …

Member Avatar for RicardoE
0
175
Member Avatar for bibiki

Hey there, seems like this part of DaniWeb is not as active as other parts, but in hope I get an answer, I'm asking. I have this xml file: [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="site.xsl"?> <navigation> <link> <name>About</name> <content></content> <target>www.google.com</target> </link> <link> <name>Friends</name> <content></content> <target>www.google.com</target> </link> <link> <name>Archive</name> <content></content> …

Member Avatar for bibiki
0
143
Member Avatar for Chimunda

Hello there, I don't know how to word this correctly, but i have a couple XML files that i need to extract certain information from. The files are already on my computer, so i won't be fetching it off the web anymore if that helps any. I mainly want to …

Member Avatar for hielo
0
180
Member Avatar for AjithAnnadurai

[B]Hi friends . i need to put tamil language comment box in my blogger . anyone knows the code please share here and help me [/B]

0
85
Member Avatar for toadzky

I'm trying to write out a series of objects as an XML file so they can be read in later. I have all the code to build the XML tree and set all the attributes, etc. I've looked through the whole tree in VS so I know all of my …

Member Avatar for toadzky
0
222
Member Avatar for balaji44

Hi, I am new to XSL. I don't know how to loop through XML and filter duplicates using XSL. I tried several ways but i could hot get it done. Here is my requirement. My XML --------- [code] <?xml version="1.0" ?> <X12Summary> <Unit volume="10" Amount="100"> <Identifier Name="Customer ID" Value="12345" /> …

Member Avatar for bibiki
0
191
Member Avatar for jaango123

Hi, I have a simple xml with me, which has two soap envelopes as attached. I am currently at the second occurence of v11:rootCauses(<xsl:template match="*[local-name()='rootCauses']). From here how can I get the position of soap:Body, Grandparent of the previous occurence of v11:rootCauses, which should be 1.

Member Avatar for jaango123
0
52
Member Avatar for jaango123

Hi All, Can anyone please let us know whether this can be done using apply templates or for each. The below xml, MuliResponse, can contain, multiple, even number, of soap Body parts. The funda is, if we have one card in the input, multiResponse will have 2 soap Body parts.4 …

0
52
Member Avatar for lizmehta

Hi, I am just a beginner to XSLT. My Input XMLs is like - <?xml version="1.0" encoding="UTF-8"?> <ABC> <filter> <name>Key Value</name> <value><![CDATA[A=344#B=123445#C=432#D=1432#E=16485]]></value> </filter> </ABC> I have made a XSLT which will fetch the value of above Key_Value <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:apply-templates/> …

0
71
Member Avatar for karthikin

Hi Friends, i have a XUL tree loaded dynamically from XML using XQUERY query type xml(Xpath Expressions). How can i do a filter/search in XUL tree. I have found some code for custom tree from Mozilla website but that doesn't work with dynamic tree. When i type something in the …

0
58
Member Avatar for akamathb

Hi, need help in xslt usage in VERSION 1.0 ... i have requirement to convert a xml to anaother xml using xslt: For each property != empty condition exists for property==empty take the previous condition and update the value section only please help... input xml is :- <data jsxid="jsxroot"> <record …

0
49
Member Avatar for siddharthsethun

Hi, I am trying to call function provided by exslt in .NET. xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date" I prefixed "date:" to the function. <xsl:variable name="dow"> <xsl:value-of select="[B]date[/B]:day-in-week($DateTime)"/> </xsl:variable> It works fine in XALAN but throws an error in .NET saying "date" is not declared. Please advice. Thanks!!!

0
53
Member Avatar for nugroho2

I am a very new beginner in XPATH, so apologize if this is not the place to ask. I want to select the Child Table 2 within the table below using XPath. [CODE]<table width="100%" border="0" cellspacing="0" cellpadding="0"> //// MAIN TABLE <tr> <td colspan="2" style="padding-left: 2px;"> <table border=0 width=100% cellspacing=0> //// …

Member Avatar for nugroho2
0
121
Member Avatar for dawsonz

Hello I have an XML file that uses <Document Element> I was wondering if it is possible to sort my XML file by sortOrder? Here is an example of my code: [code] <?xml version="1.0" standalone="yes"?> <DocumentElement> <Item DataField="A03" Header="RDAW TEST" UseDefaults="Yes" SortOrder="1"/> <Item DataField="A01" Header="Eg: Assignment 1" UseDefaults="Yes" SortOrder="2" /> …

Member Avatar for pritaeas
0
157
Member Avatar for davidmhollis

I am trying to use <xsl:if test= "node/text() = '.' to copy a node from a destination xml document to the source xml document, but only if there is a match between the text() nodes being checked from each document. My if test= "node/text() statement is always returning a match …

0
59
Member Avatar for perlnoob

Hi everyone, May I ask how to solve Index out of bound exceptions in xslt ? thank you :)

Member Avatar for pritaeas
0
37
Member Avatar for StephNicolaou

Hi All, As shown below, I have already managed to disable all menu items from the QAT. However I would also like the menu option to be completely removed! [code] <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <commands> <command idMso="ApplicationOptionsDialog" enabled="false"/> <command idMso="FileExit" enabled="false"/> <command idMso="Help" enabled = "false"/> </commands> <ribbon startFromScratch="true"> <officeMenu> <button idMso="FileCompactAndRepairDatabase" …

0
138
Member Avatar for tgreer

Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] …

0
175
Member Avatar for anandunics

Hi All, I am new to XML,XSLT. I have been assigned to task of Generating HTML pages based on the XML file & the condition is No Hardcoding of Nodes and other details. My XML file is of the below struct: Node inside Nodes , and those nodes would contain …

Member Avatar for anandunics
0
1K
Member Avatar for vt10000

Hi. In short I have an excel sheet with data in format similar to below: Column1 Column2 Column3 Column4 Column5 Column6 Column7 Column8 ABC ASDF $255 5500 220 1499 $222 1200 what is needed for the final output file is something with hierarchy such as this: <top> <secondLevel> <Column1>ABC <Column2>ASDF …

Member Avatar for tgreer
0
125
Member Avatar for andyhunter

How do you have spaces in xml, it seems to stick spaces at the start and end but if you type and have spaces for words and or sentences it picks it up. [CODE] <record> <title xml:space="default"> My Terrible Friend </title> <author>The Pains of Being Pure At Heart</author> <mp3>sounds/ThePainsOfBeingPureAtHeart-MyTerribleFriend.mp3</mp3> </record> …

Member Avatar for tgreer
0
111
Member Avatar for warlord902

I am using smack api to connect to gtalk, I need to retrieve raw xml stanzas that are displayed in debug window of smack. Is there any way to do so?

0
62
Member Avatar for michele_muc

Hey guys, I have a problem extracting some data out of this XML file: [CODE]<?xml version="1.0" encoding="UTF-8"?> <ph:Graphs xmlns:ph="http://www.merge.something.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ph:Graph name="mass_spring_mo"> <ph:Element id="0" type="Fixed"> <ph:Port id="1" type="port"> <ph:Attribute> <ph:AttributeField name="type" value="string"/> <ph:AttributeField name="name" value="type"/> <ph:AttributeField name="value" value="flange"/> </ph:Attribute> </ph:Port> </ph:Element> <ph:Element id="2" type="Spring"> <ph:Attribute> <ph:AttributeField name="type" value="int"/> <ph:AttributeField name="name" …

Member Avatar for michele_muc
0
227
Member Avatar for glfnute

I am struggling with how to parse the following XML document. I need to "walk" through the nodes via the Rank attribute (asc) with 2 rules: 1. Keep a running copy of what the Channel is so I can compare it to the next node in the list 2. In …

0
78
Member Avatar for sudheer2250

Hi, How can i convert this xml file into target xml using xslt. I tried everything, but i am not able to put the subquestions inside the corresponding questions. Please help even the logic. INPUT XML: [CODE]<?xml version="1.0" encoding="UTF-8"?> <tables> <table> <tr> <tc> <data> This is the title of the …

Member Avatar for xml_looser
0
341
Member Avatar for warlord902

Something similar to it is cross-posted here : [url]http://stackoverflow.com/questions/6275685/problem-getting-shared-status-of-gtalk-using-xml[/url] I am not getting replies there so posting it here again. I'm using smack 3.2 I have two queries: 1) How can we get the nick name or the name actual name of the user not the JID that is logging …

Member Avatar for warlord902
0
262
Member Avatar for gil_mo

Hi, Absolute newbie to cryptography. I'm looking for C++ open source code (to be compiled on Windows, Mac, linux), for doing the following: 1. Generate private+public keys (need not run on all platforms). 2. (server side) Adding a digital signature to an XML document using a private key. 3. (client …

Member Avatar for raptr_dflo
0
274

The End.