LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 10-24-2008, 11:52 AM   #1
vishal_titre
LQ Newbie
 
Registered: Jul 2006
Location: Pune
Distribution: Redhat
Posts: 22

Rep: Reputation: 15
Need help to search pattern in xml file


Hi all ,

I need your help in searching one pattern in below xml file ,
When i open this xml file in vi editor it open as single line .
in this file i want to search for pattern which is in Red (ReadRDPPackagesResponse xmlns583) and then i want cut p583 from this pattern , can any body plz help me how to search for this , (Note that when i open this file in vi editor it open as single line).
thank in advance , plz send me the solution ASAP because i am working on production issues and i need it urgent . Thank you again .


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><p583ReadRDPPackagesResponse xmlns583="http://www.microsoft.com/tv2/server/sbc/serviceassurance"><p583:ReadRDPPackagesResult><p583:Package Name="FRIDAY" PackageId="863f6bd2-d405-457d-87dc-156598016eac"><p583:ServiceIds/><p583:PackageIds/></p583:Package><p583:Package Name="Yemi PPV" PackageId="afb8f351-3234-4486-8ac6-1ba0addbd9d9"><p583:ServiceIds/><p583:PackageIds/></p583:Package><p583:Package Name="Weekend" PackageId="0dbee51f-c122-4908-8892-bdc99ce0d780"><p583:ServiceIds/><p583:PackageIds/></p583:Package><p583:Package Name="Friday Special" PackageId="ce88cc56-eb41-4b94-8dbe-e228b04aa0e8"><p583:ServiceIds/><p583:PackageIds/></p583:Package><p583:Package Name="Thursday" PackageId="f5919568-a15d-4480-be35-ef2200d13977"><p583:ServiceIds/><p583:PackageIds/></p583:Package></p583:ReadRDPPackagesResult></p583:ReadRDPPackagesResponse></soap:Body></soap:Envelope>
 
Old 10-24-2008, 12:10 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
duplicate post
Quote:
ESC
:/ReadRDPPackagesResponse xmlns:P583
 
Old 10-26-2008, 09:24 AM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please follow discussion here:

http://www.linuxquestions.org/questi...l-file-678841/
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim search pattern Berticus General 3 08-21-2008 12:13 PM
XML Pattern Ellops Programming 0 04-18-2006 10:59 AM
vim: search pattern / replace with file naflan Programming 5 01-07-2006 03:16 PM
Pattern search in a line jitz Linux - General 2 12-06-2003 04:50 AM
multiline pattern search in a file mimi Linux - General 1 09-01-2002 12:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration