Sponsored Content
Top Forums Shell Programming and Scripting XML files with spaces in the tag name, parse & display? Post 302991427 by jeffs42885 on Friday 10th of February 2017 11:07:12 AM
Old 02-10-2017
Apologies. Thank you for clarifying. Here is the output that I am now working with. Much better than before!

Keep in mind, this was generated with a part of my utility that generates an XML report.

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rename files with tag in a .xml file

Hi Guys! 1st of all, i am sorry for my bad english! I got a Sat-Receiver and i recorded some Stuff for my Children, now the Harddrive is full and i want to convert and rename it, that i can put it on DVDs But I've got a big Problem! I want to rename the files , with a tag in a xml file... (4 Replies)
Discussion started by: crusty
4 Replies

2. Shell Programming and Scripting

How to retrieve the value from XML tag whose end tag is in next line

Hi All, Find the following code: <Universal>D38x82j1JJ </Universal> I want to retrieve the value of <Universal> tag as below: Please help me. (3 Replies)
Discussion started by: mjavalkar
3 Replies

3. Shell Programming and Scripting

awk Script to parse a XML tag

I have an XML tag like this: <property name="agent" value="/var/tmp/root/eclipse" /> Is there way using awk that i can get the value from the above tag. So the output should be: /var/tmp/root/eclipse Help will be appreciated. Regards, Adi (6 Replies)
Discussion started by: asirohi
6 Replies

4. Emergency UNIX and Linux Support

Trying to parse a xml file for only one tag

I have a xml file in where I need to parse only a particular tag and print the output in the shell script. Here is the tag info in the xml file <dp:file> This is dp file output </dp:file> Output should be printed as This is dp file output. Please help.Thank you. (5 Replies)
Discussion started by: chandu123
5 Replies

5. Shell Programming and Scripting

Using shell command need to parse multiple nested tag value of a XML file

I have this XML file - <gp> <mms>1110012</mms> <tg>988</tg> <mm>LongTime</mm> <lv> <lkid>StartEle=ONE, Desti = Motion</lkid> <kk>12</kk> </lv> <lv> <lkid>StartEle=ONE, Source = Velocity</lkid> <kk>2</kk> </lv> <lv> ... (3 Replies)
Discussion started by: NeedASolution
3 Replies

6. Shell Programming and Scripting

XML Parse between to tag with upper tag

Hi Guys Here is my Input : <?xml version="1.0" encoding="UTF-8"?> <xn:MeContext id="01736"> <xn:VsDataContainer id="01736"> <xn:attributes> <xn:vsDataType>vsDataMeContext</xn:vsDataType> ... (12 Replies)
Discussion started by: pareshkp
12 Replies

7. Shell Programming and Scripting

To search for a particular tag in xml and collate all similar tag values and display them count

I want to basically do the below thing. Suppose there is a tag called object1. I want to display an output for all similar tag values under heading of Object 1 and the count of the xmls. Please help File: <xml><object1>house</object1><object2>child</object2>... (9 Replies)
Discussion started by: srkmish
9 Replies

8. Shell Programming and Scripting

Moving XML tag/contents after specific XML tag within same file

Hi Forum. I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script. Any feedback will be greatly appreciated. ... (19 Replies)
Discussion started by: pchang
19 Replies

9. Shell Programming and Scripting

find files in sub dir with tag & add "." at the beginning [tag -f "Note" . | xargs -0 {} mv {} .{}]

I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
XML::CommonNS(3pm)					User Contributed Perl Documentation					XML::CommonNS(3pm)

NAME
XML::CommonNS - A list of commonly used namespaces SYNOPSIS
# import $RDF, $RDFS, $OWL, $DC use XML::CommonNS qw(RDF RDFS OWL DC); my %CONFIG = ( Namespaces => { rdf => "$RDF", rdfs => "$RDFS", owl => "$OWL", foaf => "$FOAF", }, ExpandQNames => 1, ); # or the uri() method my $foaf = XML::CommonNS->uri('FOAF'); DESCRIPTION All you need do to use this module is import the namespaces you want from the list below. All of those will then become available to you. They are XML::NamespaceFactory object and can thus be used both as simple strings and as XML::NamespaceFactory objects. See XML::NamespaceFactory for how that may help you. I hesitated for a while before releasing this module. As a directory of namespaces that can't (and almost certainly shouldn't) be exhaustive, it implies editorial decisions and I wasn't certain it was CPAN worthy. However, after getting really tired of tracking down namespaces in every single small XML muning script I made, I wrote it for myself. After a while using it, I don't see why others wouldn't find it useful as well. NAMESPACES
The currently available namespaces are listed below. Should you consider one worthy of addition (it needs to be common enough) please simply notify me. Those marked with a start are subject to change. I WILL change them when the corresponding specification changes. XML http://www.w3.org/XML/1998/namespace XMLNS http://www.w3.org/2000/xmlns/ XLINK http://www.w3.org/1999/xlink SVG http://www.w3.org/2000/svg XHTML http://www.w3.org/1999/xhtml XHTML2 http://www.w3.org/2002/06/xhtml2 XFORMS http://www.w3.org/2002/xforms/cr XMLEVENTS http://www.w3.org/2001/xml-events DC http://purl.org/dc/elements/1.1/ DC_TERMS http://purl.org/dc/terms/ RDF http://www.w3.org/1999/02/22-rdf-syntax-ns# RDFS http://www.w3.org/2000/01/rdf-schema# OWL http://www.w3.org/2002/07/owl# FOAF http://xmlns.com/foaf/0.1/ REL http://purl.org/vocab/relationship/ RSS1 http://purl.org/rss/1.0/ COMMENTS http://purl.org/net/rssmodules/blogcomments/ SYN http://purl.org/rss/1.0/modules/syndication/ RNG http://relaxng.org/ns/structure/1.0 XSD http://www.w3.org/2001/XMLSchema XSI http://www.w3.org/2001/XMLSchema-instance MATHML http://www.w3.org/1998/Math/MathML XSLT http://www.w3.org/1999/XSL/Transform XSLFO http://www.w3.org/1999/XSL/Format SOAPENC11 http://schemas.xmlsoap.org/soap/encoding/ SOAPENV11 http://schemas.xmlsoap.org/soap/envelope/ SOAPENC12 http://www.w3.org/2003/05/soap-encoding SOAPENV12 http://www.w3.org/2003/05/soap-envelope WSDL11 http://schemas.xmlsoap.org/wsdl/ WSDL12 http://www.w3.org/2003/06/wsdl METHODS
uri Allows you to directly retrieve one of the URI objects without doing the import() dance. AUTHOR
Chris Prather, <chris@prather.org> Robin Berjon, <robin.berjon@expway.fr> COPYRIGHT AND LICENSE
Copyright 2003 by Robin Berjon This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2011-03-05 XML::CommonNS(3pm)
All times are GMT -4. The time now is 02:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy