I'm using Gambas as my language.. :-) Now I have a problem getting some values from an XML document. I'm using xml.gb as my "plugin". The XML document is: "<ns1:Event> <ns1:Number>1</ns1:Number> <ns1:Name>Home Team - Away Team</ns1:Name> <ns1:Status Id="100">End</ns1:Status> <ns1:Results> <ns1:Result Id="0" Name="Result">2</ns1:Result> <ns1:Result Id="1" Name="Fulltime">2</ns1:Result> <ns1:Result Id="2" Name="Halftime">0</ns1:Result> </ns1:Results> </ns1:Event>" My code so far is: Dim i As Integer Dim iKampnr As Integer Dim iRes As New Integer[] Dim hXMLDocument As XmlDocument Dim xeElements As XmlElement[] Dim tempElements As XmlElement[] Dim xeNode As XmlNode[] Dim xsRecord As String[] Dim sSplit As New String[] Dim yData As New XMLNT Dim rData …

Member Avatar
Member Avatar
+0 forum 6

The following (see the full code below) successfully adds a page in a section in Onenote. What I don't seem to be able to do is to get the lastly created page on top of the section. Here's the code that is puzzling me. onenoteApp.GetHierarchy(sectionId, OneNote.HierarchyScope.hsPages, out string xmlPages); var docPages = XDocument.Parse(xmlPages); var lastNode = docPages.LastNode; lastNode.Remove(); docPages.AddFirst(lastNode); GetHIerachy() just loads xml into xmlPages. The problem is stricly XML, I don't think OneNote is a problem (at this stage), as docPage.document (the xml string) is in the same state at the end as when docPages was Parsed. using System; …

Member Avatar
Member Avatar
+0 forum 4

So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is a rendering of the page up to the first error" <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="fonts.css"> <link rel="stylesheet" href="normalize.min.css"> <link rel="stylesheet" href="main.css"> </head> <body> <section> <header> <!-- TOP SECTION OF THE LETTER --> <div id="name-address-from"> …

Member Avatar
Member Avatar
+0 forum 2

My question is related to an [answered question](https://www.daniweb.com/programming/web-development/threads/506078/parsing-xml-to-extract-attributes) that was asked here on the ever reliable forum - Daniweb. I have been trying to insert the parsed data as a string into mysql table in vain. This is what i am trying to do..... From the solution in the link above, i changed the code to this: # loop each date > item > item foreach($item as $elem) $r= sprintf('%s %s %s' , $elem->attributes()->Name , $elem->attributes()->Type , $elem); } I changed $r[] to $r. This ensured that i get individual arrays from the Item nodes. However, when i try to …

Member Avatar
Member Avatar
+0 forum 3

I have an xml file that looks like this <?xml version="1.0" encoding="UTF-8" ?> <dates> <date> <Item Name="History" Type="List"> <Item Name="received" Type="Date">2015/12/18 00:00</Item> <Item Name="accepted" Type="Date">2016/03/31 00:00</Item> <Item Name="aheadofprint" Type="Date">2016/04/14 00:00</Item> <Item Name="entrez" Type="Date">2016/04/15 06:00</Item> <Item Name="pubmed" Type="Date">2016/04/15 06:00</Item> <Item Name="medline" Type="Date">2016/04/15 06:00</Item> </Item> </date> <date> <Item Name="History" Type="List"> <Item Name="epublish" Type="Date">2016/05/23 00:00</Item> <Item Name="entrez" Type="Date">2016/07/12 06:00</Item> <Item Name="pubmed" Type="Date">2016/07/12 06:00</Item> <Item Name="medline" Type="Date">2016/07/12 06:00</Item> <Item Name="pmc-release" Type="Date">2017/01/01 00:00</Item> </Item> </date> </dates> I am trying to get values of both the "name" attribute and the "date" attribute. I have used the code below <?php $xml = simplexml_load_file('dates.xml'); foreach( $xml->date->Item->children() as $v){ …

Member Avatar
Member Avatar
+0 forum 2

I have a MySQL database which contains a text field which contains well formed xml. I want to export this data as an xml file named result_new.xml on the fly. I have made the tmp folder and have set the permissions on the folder to 0777. If I run this snippet in a php file with proper access to the database and correct values in the variables, I can echo the field's content correctly, but when I use the following to create a xml file, nothing happens. I cannot find the new file in the tmp folder. Can someone give …

Member Avatar
Member Avatar
+0 forum 3

Hi I have a php script which creates an xml file //Select the Database mysql_select_db("personeelsbestand",$db); $result = mysql_query("select * from XMLAfdeling", $db); //Create SimpleXMLElement object $xml = new SimpleXMLElement('<xml/>'); //Add each column value a node of the XML object while($row = mysql_fetch_assoc($result)) { echo $row['Afdelingnaam']."\n"; $mydata = $xml->addChild('mydata'); $mydata->addChild('AfdelingID',$row['AfdelingID']); $mydata->addChild('Afdelingnaam',$row['Afdelingnaam']); $mydata->addChild('VestigingID',$row['CampusID']); $mydata->addChild('Vestiging',$row['Campus']); $mydata->addChild('DepartementsID',$row['DepartemenstID']); $mydata->addChild('Departement',$row['departement']); } mysql_close($db); //Create the XML file $fp = fopen("UltimoAfdeling.xml","wb"); //Write the XML nodes var_dump(fwrite($fp,$xml->asXML())); //Close the database connection fclose($fp); when I run the code in my browser on my localhost it works perfectly but when I try to run it in the windows command prompt as …

Member Avatar
Member Avatar
+0 forum 1

Here is the CSV file that I am working with: `"A","B","C","D","E","F","G","H","I","J" "88",18,1,"<Req TID=""34"" ReqType=""MS""><IISO /><CID>2</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""3"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-10 12.00.02 AM,27-JUN-15 12.00.00 AM,"26",667,0 "22",22,1,"<Req TID=""45"" ReqType=""MS""><IISO /><CID>4</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""10"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-22 12.00.02 AM,27-JUN-22 12.00.00 AM,"26",667,0 "32",22,1,"<Req TID=""15"" ReqType=""MS""><IISO /><CID>45</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""10"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-20 12.00.02 AM,27-JUN-34 12.00.00 AM,"26",667,0` The below …

Member Avatar
+0 forum 0

I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this in my xml file. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <movies> <movie id="1007"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> <movie id="this is newnode"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> </movie> </movies> but the code above give me something like this <?xml version="1.0" encoding="UTF-8" standalone="no"?> <movies> <movie id="1007"> <title>Interstellar</title> <genre>Science Fiction</genre> <duration>180 mins</duration> <movie …

Member Avatar
Member Avatar
+0 forum 9

I am having problem with maxOccurs in my code.. it is cauisng an error. Could anyone could aid me to avoid having error? <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> <xs:element type="nameType" name="age"/> <xs:element type="nameType" name="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="school" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="maths"/> <xs:element type="nameType" name="english"/> <xs:element type="nameType" name="physics"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

Member Avatar
Member Avatar
+0 forum 1

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = curl_exec($ch); curl_close($ch); echo $retValue;[/CODE] help me. thanks in advance

Member Avatar
Member Avatar
+0 forum 6

I am sorta new to MySQL and not 100% sure of what I can and can not do with it yet. I have an xml file with course information such as ReferenceNo. CourseName, CourseType, CourseLocation, and I want to load in into a database table that has column names such as ID, post_title, term_taxonomy_id etc I am updating the site by uploading the xml to MySQL (I am using Worpress by the way). The table I am loading it into has different named columns to that of the elements I want to load into it. So for instance I want …

Member Avatar
Member Avatar
+0 forum 7

I am just in the first week of XML class. Never even heard of it before this class. I am getting this error message, and here is my output. I have tried in IE and Chrome. Same result. Can someone tell me what I am doing wrong? Thank you!!! Teddi Jackson Electronic Products Frequently Asked Questions The ScanMaster How do I scan slides? You can scan slides using the JE Transparency Adapter (part number STA8901) available from Jackson Electronics. Where can I find the latest drivers for my ScanMaster? You can download the latest software drivers from the Jackson Electronics …

Member Avatar
Member Avatar
+0 forum 10

I am a bit new in XML and show elements/records on a website. So, here is my xml result. What and how is the easiest way to echo (in php) eg mp:title or <c:assets> <c:link rel="PT01" type="image/jpeg" href="http://ecx.images-amazon.com/images/I/41Qd6Z8OA8L.jpg"/> or price or so? any example would be nice... Cheers <c:searchResults xmlns:c="http://webstore.amazon.com/API" xmlns:b="http://webstore.amazon.com/Batch"> <c:navigation> <c:link rel="first" type="application/xml" href="http://www.outdoorequipped.com/api/search/product?query=brand%3Aadidas&amp;start=0&amp;count=20&amp;view=default"/> <c:link rel="last" type="application/xml" href="http://www.outdoorequipped.com/api/search/product?query=brand%3Aadidas&amp;start=400&amp;count=20&amp;view=default"/> <c:link rel="next" type="application/xml" href="http://www.outdoorequipped.com/api/search/product?query=brand%3Aadidas&amp;start=20&amp;count=20&amp;view=default"/> </c:navigation> <c:metadata> <c:totalResultCount>418</c:totalResultCount> <c:itemsPerPage>20</c:itemsPerPage> <c:pageNum>1</c:pageNum> <c:startIndex>0</c:startIndex> </c:metadata> <c:results> <c:product> <c:identifiers> <c:marketplaceID>A2PG39USSZQRHF</c:marketplaceID> <c:merchantSKU> <c:merchantID>A7ULJO7NAWM0L</c:merchantID> <c:sku>M17464</c:sku> </c:merchantSKU> <c:asin>B00N9QY206</c:asin> </c:identifiers> <c:offers> <c:offerSummary> <c:any> <c:lowestPrice> <c:currency>USD</c:currency> <c:value>124.82</c:value> </c:lowestPrice> <c:offerCount>11</c:offerCount> </c:any> <c:club> <c:offerCount>0</c:offerCount> </c:club> <c:collectible> <c:offerCount>0</c:offerCount> </c:collectible> <c:new> <c:lowestPrice> <c:currency>USD</c:currency> <c:value>124.82</c:value> …

Member Avatar
+0 forum 0

Hi All, Im new to xsl., In my implementation im converting a language code to a language value by lookup from a xml file. Input: <XML> <Name>shades</Name> <Languagecode>555</Languagecode> <XML> output: <XML> <Name>shades</Name> <Languagecode>hindi</Languagecode> <XML> Lookup XML table:(external file) <Languages> <Languagecode>555</Languagecode><Language>hindi</Language> <Languagecode>556</Languagecode><Language>tamil</Language> <Languagecode>558</Languagecode><Language>telugu</Language> <Languagecode>559</Languagecode><Language>malayalam</Language> <Languagecode>557</Languagecode><Language>bengali</Language> <Languagecode>554</Languagecode><Language>punjabi</Language> </Languages> I tried with Key function but still its not working.. thanks in advance.. Regards, Sathiya

Member Avatar
Member Avatar
+0 forum 5

I have a soap call which returns an object which has a xml string. an example is shown below: <?xml version="1.0" encoding="utf-16"?> <LoginResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <StatusCode>1</StatusCode> <StatusMessage>Login Successful</StatusMessage> <AuthKey>b2365767-ae42-1a44a6436575</AuthKey> </LoginResponse> I would like it to convert it into an associative array which will be similar to: array( "LoginResponse"=>array( "StatusCode"=>1, "StatusMessage"=>"Login Successful" "AuthKey"=>"b2365767-ae42-1a44a6436575" ) ); Hope this makes sense I have tried simplexml_load_string() xml2array() nothing works

Member Avatar
Member Avatar
+0 forum 5

Hi ... so I'm not sure if I have PubSubHubbub set up correctly. I tried setting up subscribing to the feed in Feedly (which supposedly supports the protocol) and now I'm starting a new thread to see if it shows up ASAP. Here goes nothing ...

Member Avatar
Member Avatar
+0 forum 5

I want to select a node based on an attribute value. I am using C# program to derive on the attribute value which is stored in a variable. The below code returns null. How can I compare the attribute value against a variable? string posSecond = "test"; SelectSingleNode("//viewentries/viewentry[@position=posSecond]"); Thanks!

Member Avatar
Member Avatar
+0 forum 2

I want to identify xml nodes that does not have specific attribute. Below is the sample xml. I want to retrieve nodes that does have the "response" attribute. I found atricles that help identify node that has a specific attribute but not my requirement. <top node> <viewentry position=1 children = 2> </viewentry> <viewentry position=1.1 children = 1 response=true> </viewentry> <viewentry position= 1.1.1 response=true> </viewentry> <viewentry position=2 children=1> </viewentry> <viewentry position=2.1 response=true> </viewentry> </top node>

Member Avatar
Member Avatar
+0 forum 2

I have just figured out how to search for the element that im looking for in a xml file but now when I run it the code loops through i know 3 times maybe even more. I want to know what im missing that would cause it to loop like that. I just need it to run through get the correct information once. tree = ET.parse(args.destDir + '/' + 'FACTSentered'+args.fileDate+'.xml') root=tree.getroot() codeList = root.findall(".//ScanCodes/ScanCode") code_stats = {} for el in codeList: code = el.find('Code').text #print code if code != None: tree = ET.parse(args.destDir + '/' + 'FACTSentered'+args.fileDate+'.xml') root=tree.getroot() codeList = …

Member Avatar
Member Avatar
+0 forum 1

I am workign with a xml file that contains the order information for a company. What i am tryign to do is see if the xml file have a scan code in it and if it does then to pull the order number so that it can be passed to another function. I have a base start but I keep getting the error AttributeError: 'NoneType' object has no attribute 'text' and dont know how to fix it. Could someone explain to me what im doign wrong and how to fix my code. tree = ET.ElementTree(file=args.destDir + '/' + 'FACTSentered'+args.fileDate+'.xml') root=tree.getroot() …

Member Avatar
Member Avatar
+0 forum 10

I have this database in stored inside my Visual Studio Express 2013 for web. How can I use XSLT to turn into: <?xml version="1.0" encoding="utf-8" ?> <graph caption='Cashflow' subcaption='(Drag to zoom out)' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='0' numdivlines='15' numVdivlines='15' yaxisminvalue='1000' yaxismaxvalue='1800' showVLineLabelBorder='1' numVisibleLabels='500' legendPosition='RIGHT' SCROLLBAR='Glow' btnSwitchToPinModeTitle='Compare Graphs'> <categories> <category name='1/1/2014' /> <category name='1/2/2014' /> <category name='1/3/2014' /> </categories> <dataset seriesName='Actual Amount'> <set value='1800' /> <set value='1900' /> <set value='300' /> </dataset> <dataset seriesName='Threshold'> <set value='500' /> <set value='500' /> <set value='500' /> </dataset> <dataset seriesName='Forecast Amount'> <set value='2800' /> <set value='2900' /> <set value='1300' /> </dataset> </graph> Please help me …

Member Avatar
Member Avatar
+0 forum 8

I'm doing a project for my class and one of the goals is to transform one XML to other using XSLT. I kinda managed to obtain the info within the original XML file but I don't know why I can't "print" the tag's. XML file (original): <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href = "fotografiasXSLT1.xsl"?> <Albuns xmlns="http://www.dei.isep.ipp.pt/lprog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dei.isep.ipp.pt/lprog fotografiasXSD.xsd"> <Album ID="3"> <Dono dono="Daniel Bastos" /> <NomeAlbum nomeAlbum="Artbook" /> <DataCriacao>2013-06-10</DataCriacao><!-->formato das datas: YYYY-MM-DD<--> <DataModificacao>2013-08-16</DataModificacao> <Descricao descricao="PhotoShop Covers" /> <Fotografias> <Fotografia FotografiaID="9"> <NomeFotografia nomeFotografia="Cover Psicose 2.0 (com frase).png" /> <link>http://goo.gl/XQ1GJv</link> <DataCriacao>2012-09-06</DataCriacao> <HorasCriacao>17:39:59</HorasCriacao> <Tipo ficheiro="png" /> <Autor autor="Daniel Bastos" /> <Localizacao> <Cidade>Maia</Cidade> <Pais>Portugal</Pais> …

Member Avatar
Member Avatar
+0 forum 4

Is it possible to count the instances of a for-each boolean statement. for example, say you have patients in a hospital and certain criteria must be met to discharge them. 100(%0) health would equal a discharge, pseudo code would read something like this: totalHealth - HighTemperature + medication * recoveryPeriod could you then have a choose statement to count the number of patients discharged or still in hospital? eg <xsl:choose> <xsl:when test="(totalHealth - HighTemperature + medication * recoveryPeriod) &gt; = 90"> Discharged Patients - <xsl:value-of select="count(true)"/> </xsl:when> <xsl:otherwise> Current Patients - <xsl:value-of select="count(false)"/> </xsl:otherwise> <xsl:choose> I know this code is …

Member Avatar
Member Avatar
+0 forum 9

What I am trying to acheive is to parse an xml file break it up into useful components and push it to a multi table SQL database. But I cannot get off the ground in the basics. Take an xml file like this [Click Here](http://old.racingnsw.com.au/Site/_content/racebooks/20140513HAWK0.xml) Which at the start is <meeting id="35504" barriertrial="0" venue="Hawkesbury" date="2014-05-13T00:00:00" gearchanges="-1" stewardsreport="-1" gearlist="-1" racebook="0" postracestewards="0" meetingtype="TAB" rail="+4m 1300m to Winning Post, True Remainder" weather="Fine " trackcondition="Dead " nomsdeadline="2014-05-07T11:00:00" weightsdeadline="2014-05-08T16:00:00" acceptdeadline="2014-05-09T09:00:00" jockeydeadline="2014-05-09T12:00:00"> <club abbrevname="Hawkesbury Race Club Limited" code="20" associationclass="2" website="http://" /> <race id="185360" number="1" nomnumber="1" division="0" name="XXXX GOLD BENCHMARK 70 HANDICAP" mediumname="BM70" shortname="BM70" stage="Acceptances" distance="2000" minweight="55" …

Member Avatar
Member Avatar
+0 forum 9

I am trying to get my head around the functions etc in xslt with xml. I have made a dummy xml file <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="books.xslt"?> <books> <book> <title>Hello Dolly</title> <author>John Thumb</author> <readers> <young_readers>17</young_readers> <older_readers>23</older_readers> <total_readers>40</total_readers> </readers> </book> <book> <title>Goodbye John Thumb</title> <author>Dolly Smith</author> <readers> <young_readers>12</young_readers> <older_readers>3</older_readers> <total_readers>15</total_readers> </readers> </book> <book> <title>A Boat Afloat</title> <author>Mike Sailor</author> <readers> <young_readers>19</young_readers> <older_readers>22</older_readers> <total_readers>41</total_readers> </readers> </book> <book> <title>Five Drummers Drumming</title> <author>Carol Christmas</author> <readers> <young_readers>11</young_readers> <older_readers>2</older_readers> <total_readers>13</total_readers> </readers> </book> </books> and what I wish to do is manipulate the reader's data to get different output. For example, sort all the young readers, find …

Member Avatar
Member Avatar
+0 forum 2

Hi I’m working right now with computer forensics. I have an xml file which I have saved from Process Monitor . The file look like <?xml version="1.0" encoding="UTF-8"?> <Company>Sysinternals - www.sysinternals.com</Company> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6de80000</BaseAddress> <Size>24576</Size> <Path>C:\Windows\system32\Riched32.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>Wrapper Dll for Richedit 1.0</Description> </module> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6f3b0000</BaseAddress> <Size>65536</Size> <Path>C:\Windows\system32\napinsp.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>E-mail Naming Shim Provider</Description> </module> Now I need script to look at through my xml or CSV file and search after all .dll words in <path> and print out it(write) to and text file for example dll.txt like Riched32.dll napinsp.dll and my .csv file 7:40:20.5240252 …

Member Avatar
Member Avatar
+0 forum 9

Dear All! I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same as we open xml file in browser. How can i do this. Here is my code $("#getXml").click(function () { var xmlhttp; xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { $("#divResult").html(xmlhttp.response); } } // alert("email.aspx?all=""&id="3"&item=""&type=""); xmlhttp.open("GET", "e.aspx?all=&id='3'&item=&type=", true); xmlhttp.send(); }); Regards

Member Avatar
Member Avatar
+0 forum 2

I need some help. I am a newbie to php .. What I am trying to do is to parse an xml file and create a drop-down for the user. I have attached how my drop down list looks currently. What I want to do is to add a sub list to each option.. say to networkSecurity I want to add option a,b,c,d which I have to read from the same xml file. How this can be done ? To create normal drop-down list my code looks like < ?php $xml=simplexml_load_file('info.xml'); foreach($xml->testcase as $var){ $var=explode('/',$var->script); $module[] =$var[2]; $testName[] = end($var); …

Member Avatar
Member Avatar
+0 forum 1

Hi, ************************************************ [B]Below is my xml code[/B] [ICODE]<?xml version="1.0" encoding="UTF-8"?> <concept><title>TEST</title><body><title>CHECKING</title></body></concept>[/ICODE] ************************************************ [B]Below is my xslt code[/B] [ICODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/"> <xsl:for-each select="concept"> <xsl:variable name="filename1"><xsl:value-of select="base-uri()" /></xsl:variable> <xsl:value-of select="$filename1" /> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/ICODE] ************************************************ [B]Getting output[/B] D:\test\Checking.dita [B]Instead of this it should display only [/B] "Checking" ************************************************ [B]Scenario[/B] 1] I need file name to generate the HTML file. 2] Level of folder may vary. [File should be in any folder on drive.] Please suggest. Cheers, Mahesh

Member Avatar
Member Avatar
+0 forum 2

The End.