Hello Everyone

Member Avatar
-1 forum 0

Here is my source XML: <Chat> <Chat StartTime="2017-05-28T02:05:52"> <message userId="02A0592964A8F75F" timeShift="4"> <msgText> Hi </msgText> </message> <message userId="123458566666666B" timeShift="30"> <msgText> Hello.. How can I Help You. ? </msgText> </message </Chat> I need an XSL to trnsform the source as: <Chats> <message time="2017-05-28T02:05:56" userId="02A0592964A8F75F">Hi</message> <message time="2017-05-28T02:06:32" userId="02A0592964A8F75F">Hello.. How can I Help You. ?</message> </Chats> In the output XML file, message time should be updated with the StartTime based on TimeShift(seconds). Please kindly help me to get this. Thanks in advance.

Member Avatar
+0 forum 0

Hello everybody, so, I realized that when I try to load some XML into a MySQL table through the `LOAD XML LOCAL INFILE ...` statement, if there is a parent with the same name of the child, MySQL will insert an extra row. Here's the example to reproduce the issue: <fruit> <fruit> <name>Orange</name> <variety>Valencia</variety> </fruit> <fruit> <name>Apple</name> <variety>Fuji</variety> </fruit> <fruit> <name>Lemon</name> <variety>Eureka</variety> </fruit> </fruit> And the SQL: CREATE TABLE IF NOT EXISTS `tmp_fruits`( `name` VARCHAR(50) NOT NULL, `variety` VARCHAR(50) NOT NULL ) ENGINE = MEMORY; LOAD XML LOCAL INFILE 'data.xml' INTO TABLE tmp_fruits ROWS IDENTIFIED BY '<fruit>'; SELECT * FROM …

Member Avatar
+0 forum 0

I want to mark some data on google map. I use eclipse Java EE and xml file is in the same workspace;(workspace_jsp). xml file: <csv_data> <row> <time>10:01:43</time> <latitude>37.4805016667</latitude> <longitude>126.952741667</longitude> <pdistance>0.000555</pdistance> <totaldistance>0.000555</totaldistance> <sectionspray>3343.0</sectionspray> </row> <row> <time>10:01:57</time> <latitude>37.4807483333</latitude> <longitude>126.952753333</longitude> <pdistance>0.027396</pdistance> <totaldistance>0.027951</totaldistance> <sectionspray>3320.0</sectionspray> </row> my code is <!DOCTYPE html > <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>PHP/MySQL & Google Maps Example</title> <script src="https://maps.googleapis.com/maps/api/js?key=~~~~" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ var customIcons = { restaurant: { icon: 'http://labs.google.com/ridefinder/images/mm_20_blue.png' }, bar: { icon: 'http://labs.google.com/ridefinder/images/mm_20_red.png' } }; function load() { var map = new google.maps.Map(document.getElementById("map"), { center: new google.maps.LatLng(37.466285,126.948366), zoom: 10, mapTypeId: 'roadmap' }); …

Member Avatar
+0 forum 0

I am attempting to add a custom function to my schematron rule stylesheet to aid in looking up values in code tables. I continue to receive an error message: 'XPST0017 XPath syntax at char 0 on line 545 near (...ookupExpression('SEX'): Cannot find a matching 1-argument function named (functions:1.0)BuildLookupExpression())' At the top of the file, I have the following declarations: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local-fn="functions:1.0" xmlns:regexp="http://exslt.org/regular-expressions" queryBinding="xslt2"> <sch:ns uri="functions:1.0" prefix="local-fn" /> . . . and the function declaration as: <!-- *********************************** Functions *********************** --> <!-- special variables for lookup table --> <xsl:key name="Code-Lookup" match="CodeTable" use="Code"/> <xsl:variable name="codeTables" …

Member Avatar
+0 forum 0

I am trying to build a web application that can also run on mobile phones. Is the html code generated by imgmap_desktop can be run on both web and mobile? or rather web responsive type?

Member Avatar
+0 forum 0

I have an xml structure : <Pages> <!--This is the root node--> <Home> <url>...</url> <menu> <item>Help</item> <item>About</item> <item>Contact</item> </menu> </Home> <Help> <url>...</url> <menu> <!--i need to select this if its parent(Help) is listed in Home/menu/item above--> <item>Business Help</item> <item>Web Help</item> <item>Tour Help</item> </menu> </Help> <About> <url>...</url> <menu> <!--And Or select this if its parent(About) is listed in Home/menu/item above--> <item>About us</item> <item>About our food</item> </menu> </About> <Contact> <url>...</url> <menu> <!--And Or select this if its listed in Home/menu/item above--> ... and so on... ... </menu> </Contact> </Pages> i issued an xpath expression to fetch all menu node in the document, …

Member Avatar
+0 forum 0

I have an xml structure : <Home> <url>...</url> <menu> <item>Help</item> <item>About</item> <item>Contact</item> </menu> </Home> <Help> <url>...</url> <menu> <!--i need to select this if its parent(Help) is listed in Home/menu/item above--> <item>Business Help</item> <item>Web Help</item> <item>Tour Help</item> </menu> </Help> <About> <url>...</url> <menu> <!--And Or select this if its parent(About) is listed in Home/menu/item above--> <item>About us</item> <item>About our food</item> </menu> </About> <Contact> <url>...</url> <menu> <!--And Or select this if its listed in Home/menu/item above--> ... and so on... ... </menu> </Contact> </Pages> i issued an xpath expression to fetch all menu node in the document, whose parent name appeared (or is …

Member Avatar
+0 forum 0

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

My XSLT is like: <!DOCTYPE stylesheet [ <!ENTITY hyphen "<xsl:text>-</xsl:text>"> <!ENTITY cr "<xsl:text> </xsl:text>"> ]> <xsl:stylesheet id="test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ext="http://exslt.org/common" exclude-result-prefixes="ext" version="1.0"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:variable name="vc_NDCROI" select="'NDC05'" /> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="node()|@*" mode="mPass2"> <xsl:copy> <xsl:apply-templates select="node()|@*" mode="mPass2"/> </xsl:copy> </xsl:template> <xsl:template match="/"> <xsl:variable name="vrtfPass1Result"> &cr; <xsl:comment>ACS&amp;T Receipt Confirmation </xsl:comment> &cr; <xsl:element name="Batch"> <xsl:element name="ASN"> <xsl:for-each select="dcsextractdata/dataheaders/dataheader[record_type = 'ORH']"> <xsl:apply-templates select="." mode="orh_receipt" /> </xsl:for-each> </xsl:element> </xsl:element> </xsl:variable> <xsl:apply-templates mode="mPass2" select="ext:node-set($vrtfPass1Result)/*" /> </xsl:template> <xsl:template match="/*[local-name()='Batch']" mode="mPass2"> &cr; <Batch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsl:copy-of select="node()|@*"/> </Batch> </xsl:template> <xsl:template match="dataheader" mode="orh_receipt"> <xsl:element name="BatchReferences"> <xsl:element name="SenderCode"><xsl:value-of select="site_user_def_type_7"/></xsl:element> <xsl:element name="ReceiverCode"><xsl:value-of select="client_user_def_type_7" /> …

Member Avatar
+0 forum 0

Help me how to write persian language (utf-8) in xml file?

Member Avatar
+0 forum 0

Hello, I'm creating a program that functions as a piano in Microsoft Expression Blend and I've hit a bit of a bump. I'm very new to XAML programming, so I thought I'd ask for help since Google searches for the answer just send me deeper into confusion. Basically, I have a JPG image of a piano [like this.](http://s1.postimg.org/763u7mspr/piano1.jpg) And each key has a button on it, that when pressed plays the appropriate tone. That seems to work right now. However, when I press a key, it plays the entire sample. It doesn't stop when another key is pressed. As well …

Member Avatar
+0 forum 0

I am trying to get specific value(s) for a webpage that contains a highchart line chart... From the example below, I use chrome dev tools to view source and I see the following snip-it: `<circle class="data-points" id="frequency-data-point-1" cx="85" cy="434.96683928513573" r="4" tooltip="<strong>Frequency: </strong>1<br /><strong>APM: </strong>0.095"></circle>` I like to return return `0.095' for example I've tried using the following and other combinations but am unable to return the value I'm looking for div.ng-scope > data-frequency-line-view#frequency-line-view > svg > circle#frequency-data-point-1 I tried finding element by id since there is an ID and it does seem to find the element...but I haven't been able …

Member Avatar
+0 forum 0

[ $("#flowchart22").click(function() { var xml = "\n"; $("li").each(function() { var cells = $("li", this); if (cells.length > 0) { xml += "\n"; for (var i = 0; i < cells.length; ++i) { xml += "\t<" + cells.eq(i).text() + "> </" + cells.eq(i).text() + ">\n"; } xml += "\n"; } }); window.alert("<answer>\t"+xml+"</answer>"); }); }); //I have a code Like Tree Format, I wrote that code using HTML UL LI.I want to convert that HTML UL LI Nested List to XML File. Im using Above code for XML conversion from HTML UL LI. I have not get Proper tree formation. So, kindly …

Member Avatar
+0 forum 0

The Input Xml is Below. <?xml version="1.0"?> <TABLE tableid="PLSW"> <CELL rowmerged="T" rowspan="2" > <Para >11<refint>AA</refint> <ext>BB</ext> </Para> </CELL> <CELL rowmerged="T" rowspan="2" > <Para >12<ext>BB</ext></Para> </CELL> <CELL rowmerged="F" rowspan="1" > <Para >13<refint>CC</refint></Para> </CELL> </TABLE> I need XPATH for the above Input XML.If any of one <Para>contains refint with some other tag(<ext>) or it contains only some other tags (ex:(<ext>),then it should change the taleid="PLSW" to tableid="ADHOC".can you please tell some ideas to write XPATH for the Scanario. Note:I am new to XPATH. My output will be: <?xml version="1.0"?> <TABLE tableid="ADHOC"> <CELL rowmerged="T" rowspan="2" > <Para >11<refint>AA</refint> <ext>BB</ext> </Para> </CELL> <CELL rowmerged="T" …

Member Avatar
+0 forum 0

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

Hello!!! If I have this <bookstore> <book author="Tommy"> <title>Emma</title> </book> </bookstore> and I want to get the node, I know that I must write this. string au = "Tommy"; string query = String.Format("//bookstore/book[@author={0}]/title", au); Also, if I have this <bk:bookstore xmlns:bk="http://www.test.com/"> <book author="Tommy"> <title>Emma</title> </book> </bk:bookstore> and I want to get the node, I know that I must write this XmlNamespaceManager nsmgr = new XmlNamespaceManager(xml.NameTable); nsmgr.AddNamespace("bk", "http://www.test.com/"); XmlNodeList elements0 = xml.SelectNodes("//bk:bookstore/book/title", nsmgr); But I don't know what to do, if I have the second case and I want to use the attribute author as avariable. I try this but it …

Member Avatar
+0 forum 0

I have an xml structure : <Articles> <Article ID="111"> <author>Peter Paul</author> <pubDate>01/01/2015</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> <Article ID="222"> <author>Monkey Rice</author> <pubDate>01/01/2016</pubDate> <Translations> <lang1>English</lang1> </Translations> </Article> <Article ID="333"> <author>John Silas</author> <pubDate>01/01/2017</pubDate> <Translations> <lang1>English</lang1> <lang2>French</lang2> <lang3>Arab</lang3> <lang3>Chinese</lang3> </Translations> </Article> </Articles> i created a method AddRecordByInfoMatch() that attempts to add new node to any <Article> of a given ID anywhere as long as a match exists: function AddRecordByInfoMatch($ParentID, $Info_1, $Info_2, $Info_3, array $Record){ $xml = new SimpleXMLElement(blabla.xml); $result = $xml->xpath("//*[@ID='$ParentID']"); //get the article ID if(!empty($result)){ foreach($result[0] as $key => $value){ $noofChild = count($value); //three info match may lakely be within …

Member Avatar
+0 forum 0

I have a process defined. I use XPath to refer to each activity in the process. Now, I wish to create instances of the activities and be able to refer to these instances. Also, I need to refer to something like start activity X when second instance of activity Y is started. Is this possible to represent in XPath ?

Member Avatar
+0 forum 0

hi can you plz explain wic is best fot devrloping websites or web application Php,.net or using xml xquery

Member Avatar
+0 forum 0

Hello Every one, Tell me how many tipe of site map we can use for positive seo..

Member Avatar
+0 forum 0

Is there any official certifications for XML?

Member Avatar
+0 forum 0

I have this XML data which basically to add/minus/multiply the two numbers. And I have this Xquery function that suppose to convert this XML data into a readable string format. For example, let say XML file has in this form : <expr> <add> <number>2</number> <number>3</number> </add> </expr> <expr> <divide> <number>7</number> <times> <number>1</number> <number>6</number> </times> </divide> </expr> the Xquery function will be able to convert this into "2 + 3" and 7 / (1 * 6) respectively through the local:convertExpr function Below is the sample of the Xquery that I am working right now : **Xquery File :** declare function local:convertExpr($expr) …

Member Avatar
+0 forum 0

Hi Hi I have a requirement like this. We are using xsl top formatt the oracle returned query results in to proper tables . attached is the sample html file generated . I want this html to behave like following . if the column NOTES_ON_CRITICAL_THRESHOLDS contains DDD, we want the 3 rd column cell to be highlighted in red . if the column NOTES_ON_CRITICAL_THRESHOLDS contains DDD and RUD ,we need 3 rd and 5 th column elements to be highlighted in red . if the column NOTES_ON_CRITICAL_THRESHOLDS contains DDD,RUD and FUD we want 3 rd ,5 th and 8 th …

Member Avatar
+0 forum 0

I need to import the xml file into access and I should do the transformations (XML -> XML) and to do that Access calls an XSLT file. Then my source file is as follows, of course I deleted the rows because it was very long, but it should be understood, however, the structure. <?xml version="1.0" encoding="ISO-8859-1" ?> <Titole> <File>nomefile.xml</File> <Date>2014-05-23 11:37:41</Date> <A> ... </A> <B> ... </B> <C> <D Index="1"> ... </D> <D Index="2"> ... </D> <D Index="3"> ... </D> </C> </Title> Importing it into MSAccess, it creates several tables for each element and so far everything is ok. I …

Member Avatar
+0 forum 0

Hi, I'm not sure if this is the correct section to post my question in, but since my problem refers to xaml scripting I guess so. I added a listview in my win store app from which the user can choose among several elements and click the one she wants to expand in another box. The problem is that when you click and therefore highlight an item, its name is kinda cut off showing part of the first letter and than the others (for example, if you see Æþelstan and click on it, it'll only show Eþelstan). I tried to …

Member Avatar
+0 forum 0

Below Code is not working. it is not displaying any thing on web browser can any one help me out? css file code: car_catlog { background-color:#FF0000; width:100%; background-image:url(car1.jpg); } car { display:block; border:solid; color:#FFF; margin-left: 10pt; } make,model,year,color,engine{ display:block; margin-left: 10pt; } number_of_doors,transmission_type,accessories { display:block; margin-left: 30pt; } XML FILE CODE: <?xml version="1.0" encoding ="utf-8"?> <?xml-stylesheet type= "text/css" href= "cars_catalog.css" ?> <!DOCTYPE car [ <!ELEMENT car_catalog (car)> <!ELEMENT car (make, model, year, color, engine,number_of_doors, transmission_type, accessories)> <!ELEMENT make (#PCDATA)> <!ELEMENT model (#PCDATA)> <!ELEMENT year (#PCDATA)> <!ELEMENT color (#PCDATA)> <!ELEMENT engine (number_of_cylinders, fuel_system)> <!ELEMENT number_of_doors (#PCDATA)> <!ELEMENT transmission_type (#PCDATA)> <!ELEMENT accessories …

Member Avatar
+0 forum 0

i am trying to use xerces in ubuntu 13.10, it is instaled, i can see the files in usr folder but i have no luck including it in eclipse cdt, i've found this thread "[Click Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/409769/ubuntu-11.10-xerces-c)" but it is dead and the answer is not clear for me, could anyone help me?

Member Avatar
+0 forum 0

Basically I've created an **app drawer** and placed a **seekbar** within it. This app drawer is made up from **app_drawer.xml** whilst my fragment below is made up from **main_activity.xml**. The issue I'm having is, although the seekbar shows up perfectly and the app drawer pulls in and out as it should, when I drag it **nothing happens** (By which I mean the textview is NOT updated) Even though it should Before anyone suggests it is that the seekbar is the problem, it is part of a listener event which means it is called every-time progress changes. So it won't be …

Member Avatar
+0 forum 0

Hi, I am trying to read a html page and convert into xml and copy the content into a txt file in the local drive. The code below is to read the html page: def cleaner = new HtmlCleaner() def node = cleaner.clean(address) // Convert from HTML to XML def props = cleaner.getProperties() def serializer = new SimpleXmlSerializer(props) def xml = serializer.getXmlAsString(node) // Parse the XML into a document we can work with return new XmlSlurper(false,false).parseText(xml) and the below code is to write it to a local txt file: static writeXml(page, fname) { def d1= new File(base + '/' + …

Member Avatar
+0 forum 0

The End.