473,411 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Check and Validation by using parsing

hello everyone,
i am new in this community. i have some problem in checking and validation of data acording to syntax. which i have given below..
my problem is i want to check a sip url acording to syntax.i want to parse a url and check and validate . if url doesn't match with our syntax give error like url doesn't match....

Syntax:

SIP-URI = "sip:" [ userinfo ] hostport uri-parameters

Rule:
1. userinfo = ( user / telephone-subscriber )
examples:
sip:alice@atlanta.com
sip:alice:secretword@atlanta.com;transport=tcp
sip:+1-212-555-1212:1234@gateway.com;user=phone

2. hostport = host [ ":" port ]
examples:
sip:alice@atlanta.com
sip:alice:secretword@atlanta.com;transport=tcp
sip:+1-212-555-1212:1234@gateway.com;user=phone

3. uri-parameters = *( ";" uri-parameter )
examples:
sip:alice:secretword@atlanta.com;transport=tcp
sip:+1-212-555-1212:1234@gateway.com;user=phone
uri-parameter = transport-param / user-param
1. transport-param = "transport=" ( "udp" / "tcp" / "sctp" / "tls" / "tls-sctp" )
2. user-param = "user=" ( "phone" )
Jun 6 '07 #1
5 2456
miller
1,089 Expert 1GB
What have you tried so far?

- Miller
Jun 6 '07 #2
What have you tried so far?

- Miller
Hello Miller,
i haven't tried so far...but, i am trying to solve this problem because i have no idea about parsing technique. how to parse data and check.. so now i learning parsing. if you have some tips about this probem and parsing. please do some needfull..
Jun 7 '07 #3
miller
1,089 Expert 1GB
The standard method used for most parsing is regular expressions. I suggest that you start with this book on perl. Chapter 5 covers regular expressions:

http://www.perl.org/books/beginning-perl/

After that there is more detailed documentation located on perldoc.

perldoc perlrequick
perldoc perlre
perldoc perlretut

Good luck,
- Miller
Jun 7 '07 #4
Thank's Miller....

thanks and regards
Lokesh....
Jun 8 '07 #5
miller
1,089 Expert 1GB
Your Welcome Lokesh....

Miller....
Jun 8 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ewan B | last post by:
Hi, I'm using Xerces to parse XML files using SAX2, and am wondering if there is any information as to what exceptions are being thrown when certain validation errors occur. Taking a simple...
2
by: Olaf Meyer | last post by:
Apprentently xerces 2.6.0 (Java) does not validate against contraints specified in the schema (e.g. constraints specified via unique element). The validation works with the XML editor I'm using...
1
by: Ghee | last post by:
Hello, I have a (java) DOM object that adheres to an XML schema. I want to manipulate it in code, but to ensure that the object still sticks to the schema (ie, validation during the life-cycle...
8
by: tshad | last post by:
I get the following message from one of my buttons where I have CauseValidation=false. Page.IsValid cannot be called before validation has taken place In my routine I need to do: if Not...
3
by: ferg | last post by:
I have a Customer table. The table has two different CHECK constraints. Then there is the Customer details dialog, which provides the user with an UI for changing users. I have some UPDATE sql,...
7
by: christian.eickhoff | last post by:
Hi Everyone, I am currently implementing an XercesDOMParser to parse an XML file and to validate this file against its XSD Schema file which are both located on my local HD drive. For this...
2
by: John Smith | last post by:
Hello, I have a VB.NET application with a Windows form that have several textboxes fields where I have dates entered. I would like to do a date validation check after the the field is updated, so...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
by: xavierite | last post by:
I am using this method to insert into table of xmltype INSERT INTO xml_table VALUES (XMLType(bfilename('XMLDIR','Test_xml.xml'), nls_charset_id('AL32UTF8'))); xmlfile is like this <?xml...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.