XML Namespace tutorial for complete Beginners

  Рет қаралды 145,849

Automation Step by Step

Automation Step by Step

3 жыл бұрын

website - automationstepbystep.com/
What is namespace in XML
What is the use of namespaces
How to create a namespace
XML Namespace examples
Prefixes can be used in XML to resolve elements name conflicts
When using prefixes in xml, a namespace for the prefix must be defined
xmlns:prefix="URI"
The namespace can be defined by an xmlns attribute in the start tag of an element
All child elements with the same prefix are associated with the same namespace
Namespaces can also be declared in the XML root element
Default Namespaces
Defining a default namespace for an element saves us from using prefixes in all the child elements
xmlns="namespace URI"
XML namespaces are used for providing uniquely named elements and attributes in an XML document
References
www.w3schools.com/xml/xml_nam...
en.wikipedia.org/wiki/XML_nam...
Join Automation Step By Step channel: kzbin.info...
Udemy Discounts - automationstepbystep.com/udem...
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can.
_______ ONLINE COURSES TO LEARN _______
automationstepbystep.com/onli...
GitHub - github.com/Raghav-Pal/
Udemy - www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue - raghav.qna@gmail.com
Training schedule - automationstepbystep.com/trai...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
TestProject - bit.ly/2DRNJYE
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Kubernetes - bit.ly/2MJIlMK
------------VIRTUALISATION------------
Virtualization on windows - bit.ly/2SItIL9
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- BUILD TOOLS -----------
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
---------- Connect with Raghav -----------
Website - automationstepbystep.com/
LifeCharger - lifecharger.org/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
Facebook - / automationstepbystep
Twitter - / learnwithraghav
KZbin - / automationstepbystep
Never Stop Learning
Raghav

Пікірлер: 123
@PaulEllisBIGDATA
@PaulEllisBIGDATA 2 жыл бұрын
Loved your video!! THANKS for posting. Watching the entire series.
@RaghavPal
@RaghavPal 2 жыл бұрын
Awesome! Thank you Paul
@ravirajsaraganachari3038
@ravirajsaraganachari3038 3 жыл бұрын
Thank you for simple and clear explanation :)
@RaghavPal
@RaghavPal 3 жыл бұрын
You are welcome Raviraj
@majidk1440
@majidk1440 3 жыл бұрын
Thks a lot sir Best XML tutorial😇😇
@chaoukikessouri4943
@chaoukikessouri4943 5 ай бұрын
Love your videos sir, very short and direct, much respect.
@RaghavPal
@RaghavPal 5 ай бұрын
Glad you like them..
@ishsharma6529
@ishsharma6529 Жыл бұрын
wonderful work . no other video starts for scratch . 👍
@RaghavPal
@RaghavPal Жыл бұрын
Thank you so much Ish
@newtownministries9069
@newtownministries9069 Жыл бұрын
Thank you very much. This video helps answer my confusion on the meaning of the prefix xmlns.. Very helpfull
@RaghavPal
@RaghavPal Жыл бұрын
You are welcome!
@locke827
@locke827 Жыл бұрын
This content is very helpful for me. Thank you very much!
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Locke
@neelchoudhary9677
@neelchoudhary9677 2 жыл бұрын
oh my god this was so helpful! thanks so much for making this!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Neel
@huichan5140
@huichan5140 Жыл бұрын
Clear explanation. Thanks.
@RaghavPal
@RaghavPal Жыл бұрын
Glad it was helpful Hui
@bevedel
@bevedel 2 жыл бұрын
Awesome! Thank you so much.
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome
@KDOERAK
@KDOERAK 2 жыл бұрын
Another great video 👍Thx again.
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad you enjoyed it
@higiniofuentes2551
@higiniofuentes2551 8 ай бұрын
Thank you for this very useful video!
@RaghavPal
@RaghavPal 8 ай бұрын
You're very welcome
@Clemen1ine
@Clemen1ine 8 ай бұрын
I lost more than 2 hours of my life before I found this video
@RaghavPal
@RaghavPal 8 ай бұрын
Glad to know it helped :)
@vigneshbalan3007
@vigneshbalan3007 3 жыл бұрын
Thank you👍great work... Looking for complete tutorial on XML
@RaghavPal
@RaghavPal 3 жыл бұрын
Will upload soon Vignesh
@zes7215
@zes7215 3 жыл бұрын
wrg, no nerx , ts just codex, cepitx, say any nmw
@subashadhikari3290
@subashadhikari3290 2 жыл бұрын
Thankyou so much from the land of mountains,Nepal
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Subash
@karunakeshari1058
@karunakeshari1058 3 жыл бұрын
Very well explained
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad it was helpful Karuna
@shanepereraedu
@shanepereraedu Ай бұрын
Thank you! ❤
@RaghavPal
@RaghavPal Ай бұрын
Most welcome Shane
@AD-je9nq
@AD-je9nq Жыл бұрын
Hello Raghav ! Excellent video with detailed explanation ! Request you to start a video on-"How to use xsi:type ="xsd:string"" in Soap request and response . Thank you so much ! OR do you already have a video done for that ?please let us know
@RaghavPal
@RaghavPal Жыл бұрын
Noted
@khaouladjouabi7270
@khaouladjouabi7270 Жыл бұрын
Really grateful 😍😍😍
@RaghavPal
@RaghavPal Жыл бұрын
My pleasure 😊
@jayakrishna2154
@jayakrishna2154 2 жыл бұрын
Thank you so much.
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Jaya
@khaouladjouabi7270
@khaouladjouabi7270 Жыл бұрын
thanx ur the best ... ❤❤❤❤
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome
@Chuuzus
@Chuuzus 2 жыл бұрын
thank you for this
@RaghavPal
@RaghavPal 2 жыл бұрын
You're very welcome!
@venkey5399
@venkey5399 Жыл бұрын
Super explanation sir 😇😇😇
@RaghavPal
@RaghavPal Жыл бұрын
Thanks and welcome
@kanchanlatapal6606
@kanchanlatapal6606 5 ай бұрын
Your video very helpful
@RaghavPal
@RaghavPal 5 ай бұрын
Glad it was helpful Kanchanlata
@divyajyotibasu3001
@divyajyotibasu3001 2 жыл бұрын
Hi Raghav, brilliant explanation! Request you start a series on oracle osb 12c in detail. Theres hardly any good explanatory material available online for a beginner to understand osb and i think with your simple yet in-depth explanations can help many including me. regards!
@RaghavPal
@RaghavPal 2 жыл бұрын
Noted, will plan Divyajyoti
@Sidhu-n2
@Sidhu-n2 Жыл бұрын
THANKYOU SIR.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Sidhu
@flexprods
@flexprods 3 жыл бұрын
Thank you, this will definitely halped me with tomorrow's exam, appreciate.
@RaghavPal
@RaghavPal 3 жыл бұрын
Best of luck!
@nadineF
@nadineF Жыл бұрын
Thank you 🙏
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Nadine
@shubhlaabh6342
@shubhlaabh6342 3 жыл бұрын
Thanks Raghav for ur video 👍, What's the use of uri in namespace, and what that uri locates ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, The namespace URI is what allows us to identify uniquely the namespace stackoverflow.com/questions/18974378/what-does-namespace-uri-exactly-means
@gokulbalachandran6374
@gokulbalachandran6374 3 жыл бұрын
@@RaghavPal Do we always need a live url for identification of the namespace? or is there some other way?
@michach_164
@michach_164 Жыл бұрын
Brilliant video! I do have a question, I happen to run into a problem when trying to write back into an xml after i changed somethin. The default namespaces get written in properly, but there have been local namespaces, which were not defined above inside an element which dissapeared. Can i just add them to the default definition?
@RaghavPal
@RaghavPal Жыл бұрын
Hi, It is possible to add local namespaces to the default definition in an XML document, but it depends on the specific structure and requirements of your XML document When you add a namespace to the default definition, it is applied to the entire document, including all elements and attributes This means that if you add a local namespace to the default definition, it will be applied to all elements and attributes in the document, even if they don't require it. This can lead to issues with validation and compatibility if the namespace is not used correctly A better approach would be to keep the local namespaces separate from the default namespaces, and define them only on the specific elements and attributes that require them. To do this, you can use the xmlns attribute to define the namespace on the specific element or attribute E.g. It's also important to note that if you change an xml file, it's always a good practice to validate the xml file with the appropriate schema before sharing or publishing it
@koushikthelukala9102
@koushikthelukala9102 3 жыл бұрын
Hi, Thanks for the content. What is the use of the URI in the NameSpace?
@RaghavPal
@RaghavPal 3 жыл бұрын
You can
@shwetaupadhyay5421
@shwetaupadhyay5421 2 жыл бұрын
@@RaghavPal I have the same question. What is that URI for> Which server is that pointing to?
@basavaraju1466
@basavaraju1466 2 жыл бұрын
Uniform resource identifier, it locates the resource where that particular operation can be executed using required parameters we give
@davidranney8723
@davidranney8723 Жыл бұрын
@@basavaraju1466 this doesn't really answer the question. What needs to exist at the URL provided?
@marwanelsadat2349
@marwanelsadat2349 Жыл бұрын
thank you
@RaghavPal
@RaghavPal Жыл бұрын
You're welcome Marwan
@snehakhade9704
@snehakhade9704 3 жыл бұрын
Hi Raghav, What are the valid values for URI? How to decide, values for URI?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sneha, URI is the Uniform Resource Identifier, like URL for a web page, it is the locator of a resource on the server, So it has a fixed value for every resource and you should get it from your dev or product team
@snehakhade9704
@snehakhade9704 3 жыл бұрын
@@RaghavPal Thanks Raghav for quick reply. But, if I am creating a XML for myself and I need to give a unique and valid URI for namespace and if there is no dev or product team. How to choose it?
@kanchanlatapal6606
@kanchanlatapal6606 5 ай бұрын
Best👍
@RaghavPal
@RaghavPal 5 ай бұрын
Thanks for watching..
@CashLootsOfficial
@CashLootsOfficial Жыл бұрын
Awesome
@RaghavPal
@RaghavPal Жыл бұрын
Thanks for watching
@opendojo929
@opendojo929 3 жыл бұрын
What is the purpose of adding the uri to the namespace? Documentation or does it validate something?
@RaghavPal
@RaghavPal 3 жыл бұрын
url allows to identify the namespace uniquely
@basavarajhalli8202
@basavarajhalli8202 3 жыл бұрын
Hi Raghav, does it requires to learn HTML and CSS for automation testing?!
@RaghavPal
@RaghavPal 3 жыл бұрын
No, it does not, but having knowledge of XML and JSON will help specially for API testing
@prakashjoshi1580
@prakashjoshi1580 3 жыл бұрын
HTML is basic, you must learn HTML, atleast for 3 hours, make some basic web pages, do practice. you can learn it from you tube. Good luck.
@krupaj2256
@krupaj2256 3 жыл бұрын
How do I add custom namespace uri and local part in soap response in java spring
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Krupa, I will need to check on this
@ishanpal9779
@ishanpal9779 3 жыл бұрын
👍
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for watching
@steevek
@steevek 3 жыл бұрын
Please explain for what purpose of the URL is. Many thanks for this great series of videos.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Steven, pls tell me the exact time stamp to refer
@daniel.balandra
@daniel.balandra Жыл бұрын
@@RaghavPal well many of the namespaces on your video are associated with URLs, but what i didn't understand is why would i associated an XML element to any URL?
@inbarajananbu8649
@inbarajananbu8649 Жыл бұрын
​@@daniel.balandra seems he doesn't have answer 😅
@jasonlein3183
@jasonlein3183 Жыл бұрын
the URL used as a namespace identifier in XML is a convention to ensure global uniqueness and does not necessarily imply any direct web resource retrieval.
@jksharma7
@jksharma7 Ай бұрын
Thank you sir well explained
@RaghavPal
@RaghavPal Ай бұрын
Most welcome
@diegoramos27
@diegoramos27 2 жыл бұрын
hi sir what is the URI that is used? does it have to point to an XSD?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Diego, what is the context here, pls point the time in the video so I can refer
@ohnewerbung9601
@ohnewerbung9601 2 жыл бұрын
ok in This Video I neither did understand why I do it nor what I do in the end. where are the URL from? what URL should I use? I have no idea why there is a URL at all why cant I just use another element then Table? like funiturtable?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Ohne, sorry that it did not help you much, I hope you watch the earlier videos of this series, and that will help, can check here - automationstepbystep.com/
@priyar358
@priyar358 4 ай бұрын
But how can we give the urls? Is there any criteria for this
@RaghavPal
@RaghavPal 4 ай бұрын
Priya When including URLs in XML documents, there are a few considerations to keep in mind. Let's explore how to handle URLs within XML: 1. Plain URLs: You can directly include a URL within an XML element. For example: ```xml ¹(www.mysite.com/page?id=1) ``` However, if your URL contains special characters (such as `&`, ``), you need to escape them properly. For instance: - `&` should be replaced with `&` - `` should be replaced with `>` 2. CDATA Sections: To avoid escaping special characters, you can use CDATA (Character Data) sections. Text inside a CDATA section is ignored by the XML parser. Here's an example: ```xml ``` In this case, the entire URL (including any special characters) is preserved as-is. 3. XLink (XML Linking Language): If you want to create links within your XML document, you can use XLink. Here's a simple example: ```xml Visit W3Schools ``` XLink allows you to define relationships between elements and external resources. Remember that the choice between plain URLs, CDATA sections, or XLink depends on your specific use case and requirements. Choose the approach that best suits your XML structure and content.
@beinghappy9223
@beinghappy9223 8 ай бұрын
I don't get where the link or URI takes us to or what URI should we provide
@RaghavPal
@RaghavPal 8 ай бұрын
In XML (eXtensible Markup Language), a Uniform Resource Identifier (URI) or link is used to identify or locate resources. A URI can be a Uniform Resource Locator (URL) or a Uniform Resource Name (URN).
@abc-gh5ol
@abc-gh5ol Жыл бұрын
okey me vi todo el video algo entendi pero me falta ... , gracias por tu video
@RaghavPal
@RaghavPal Жыл бұрын
Muy bienvenido
@allwatching4351
@allwatching4351 Жыл бұрын
what to write in URI of namespace?
@RaghavPal
@RaghavPal Жыл бұрын
The namespace declaration has the following syntax. xmlns:prefix="URI". www.w3schools.com/xml/xml_namespaces.asp
@anujgoyal5253
@anujgoyal5253 5 ай бұрын
what is the use of uri?
@RaghavPal
@RaghavPal 5 ай бұрын
Anuj URIs act like unique addresses for online resources, telling you where to find them and sometimes even describing them
@Ayush-mn8jz
@Ayush-mn8jz Жыл бұрын
IRI or URL? 2:04
@RaghavPal
@RaghavPal Жыл бұрын
its URI here
@whimsicalkins5585
@whimsicalkins5585 Жыл бұрын
I can only understand till prefixes. I have many questions.. 1. Why would anyone combine a XML document(furniture) with a HTML document(Tables). 2. Please anyone give me a real example. Added to this, how can we join a HTML document with XML documents! 3. What is a real, physical meaning of namespace, do we have to provide namespace always while using prefixes? 4. Why at the first place I would want to initialize my tag to "URI" using a namespaces. ? Please somebody answer this question....
@RaghavPal
@RaghavPal Жыл бұрын
Hi, I will plan to check on these, Meanwhile if anyone can help, pls add your *Comment*
@anujrana5462
@anujrana5462 3 жыл бұрын
hey this one is from w3 school
@RaghavPal
@RaghavPal 3 жыл бұрын
hope it helped, i studied diff resources including w3school
@missbasma5231
@missbasma5231 9 ай бұрын
Im highly confused on the addition of h: and f: 😢
@RaghavPal
@RaghavPal 9 ай бұрын
ok, will try to add more details
@subhashkumar5896
@subhashkumar5896 2 жыл бұрын
w3school ?
@RaghavPal
@RaghavPal 2 жыл бұрын
and several other resources, I tried to make it useful and understandable for beginners
@ishtveersinghbilling5997
@ishtveersinghbilling5997 Жыл бұрын
gg
@RaghavPal
@RaghavPal Жыл бұрын
let me know if you have any questions or msg
@adilabdul447
@adilabdul447 3 жыл бұрын
You not provide the information where to use this language In your videos you teach the how write the language but what is Output you are not showing.?!
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Adil, I created this playlist for people who work with XML like in API Testing etc, but need to know more about the basics. But I get your point, will add more videos
@prakashjoshi1580
@prakashjoshi1580 3 жыл бұрын
No ! you are not teaching from scrach. suddenly introducing new words and sentences. Please learn how to teach. Thanks.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Prakash, apologies for the issues you faced. I will take care of this, For this specific video, pls let me know the terms that needs more explanation, I will try to do a video or article on the same
@stocadg
@stocadg Жыл бұрын
thank you
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Gustavo
What is DOM | Document Object Model | Beginner Tutorial
6:58
Automation Step by Step
Рет қаралды 492 М.
What are XML Namespaces? And how do you work with them?
23:35
Erik Wilde
Рет қаралды 4,5 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 38 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 8 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
XML Schema (XSD) Beginner Tutorial with Demo
9:44
Automation Step by Step
Рет қаралды 344 М.
2.4  XML Name Space
7:53
OU Education
Рет қаралды 8 М.
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
What is XML | XML Beginner Tutorial | Learn XML with Demo in 10 min
10:58
Automation Step by Step
Рет қаралды 897 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
XML Namespaces with Example
11:23
Sudhakar Atchala
Рет қаралды 17 М.
XSLT Beginner Tutorial with Demo
14:56
Automation Step by Step
Рет қаралды 207 М.
XML Basics -- for Beginners
21:09
Bhaskar Dey
Рет қаралды 406 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 38 МЛН