9. XPath examples and demonstrations in XML

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2017
  • Demonstrate how XPath works against a live XML document.
    This video is part of a playlist that describes how to use XML, XSD, and XSLT. See the entire playlist here: • XML and XSD: How do th...

ความคิดเห็น • 35

  • @GoGroomer
    @GoGroomer 5 ปีที่แล้ว

    These tips are great! The free online helpful websites are exactly what i needed to validate my code-Thank you:)

    • @discospiff
      @discospiff  5 ปีที่แล้ว +1

      Excellent! Glad it helped. I occasionally go back to this video so I'll remember to use the sites. :)

  • @Maazin5
    @Maazin5 ปีที่แล้ว

    This is the video I needed! Could not get my head around xpath until now. Thanks you 😊

    • @discospiff
      @discospiff  ปีที่แล้ว +1

      Awesome! XPATH is a very powerful way to get what you want out of an XML document. I'm glad this video helped you!

  • @koffibanan3099
    @koffibanan3099 6 ปีที่แล้ว +3

    Thanks Brandan! I'm really learning a lot from this series!
    Best regards, from Belgium!!

    • @discospiff
      @discospiff  6 ปีที่แล้ว

      Excellent, glad to hear it helps! I visited Brussels two years ago!

    • @ronansullivan5036
      @ronansullivan5036 2 ปีที่แล้ว

      You probably dont give a damn but does someone know a way to log back into an Instagram account..?
      I somehow forgot the account password. I would love any tips you can offer me

    • @finnleykaiden467
      @finnleykaiden467 2 ปีที่แล้ว

      @Ronan Sullivan instablaster :)

    • @ronansullivan5036
      @ronansullivan5036 2 ปีที่แล้ว

      @Finnley Kaiden I really appreciate your reply. I got to the site through google and Im trying it out now.
      I see it takes quite some time so I will reply here later when my account password hopefully is recovered.

    • @ronansullivan5036
      @ronansullivan5036 2 ปีที่แล้ว

      @Finnley Kaiden It did the trick and I now got access to my account again. Im so happy!
      Thank you so much, you saved my account!

  • @deshpasheeto192
    @deshpasheeto192 5 ปีที่แล้ว +2

    Excellent and well explained sir... Thank you for the video. It was exactly what I was looking for...😊

    • @discospiff
      @discospiff  5 ปีที่แล้ว +1

      Glad it helped! Thanks.

  • @northkirra
    @northkirra 5 ปีที่แล้ว

    Good stuff, thanks a lot.

  • @deekshantmalvi4612
    @deekshantmalvi4612 6 ปีที่แล้ว

    Woah.. thanks a lot..you saved my college exams. and please Keep Uploading : )))

  • @lhxperimental
    @lhxperimental 4 ปีที่แล้ว

    I have disliked XML for my entire career of 13 years. Partly because I never understood how it was really meant to be used. I just saw it as bloated data container format. Also I never understood the top few lines of XML. I had never worked on a XML heavy project, so never needed to dive deep...until now. Your tutorial series was an eye opener. I now understand what wonderful things XMLs and XSDs are. Thank you!

    • @discospiff
      @discospiff  4 ปีที่แล้ว +1

      Thanks! I appreciate the feedback.
      I had a similar journey... coming from the flat file or comma separated value world, I didn't fully grasp XML, until I saw it used for data import and interchange. Then, when I saw the role that XSD can play in validating XML data (essentially, a pre-validation step), it became very clear how XML can be used to ensure you have good data coming in.
      When you look at it through the glasses of HTML, it's even more interesting. There's a DTD for several HTML styles. These describe the rules of HTML which many people know from memory, but may not be aware there's an official validation file for it.
      While the world has largely moved to JSON lately, and JSON does have a schema, I don't think it's fully as mature as XSD. You have to choose OpenAPI or JSON Schema format, and I rarely see anyone use it as input validation. It's more a matter of, "here's what your JSON should look like" than "this field should be a number greater than 2, less than 6" as you can do in XSD. Granted, you can do that with JSON schema; it's just not often that I see anyone use it that way. I suspect we'll get there over time.
      Thanks for watching!
      -Brandan

  • @schlomomushnik3162
    @schlomomushnik3162 5 ปีที่แล้ว

    Brandan! This is excelent! Thanks

    • @discospiff
      @discospiff  5 ปีที่แล้ว

      Glad it helped! Thanks for the comments!

  • @kobidkunwar627
    @kobidkunwar627 2 ปีที่แล้ว

    Thank you. It's Exactly what I need.

    • @discospiff
      @discospiff  2 ปีที่แล้ว +1

      I'm glad it helped! Thanks.

  • @prasadkancharlaautomation2874
    @prasadkancharlaautomation2874 3 ปีที่แล้ว

    Hi, thanks for the video, i am getting XPath set is empty when i try>>:: xmllint --xpath "//string to fetch" filepathxml what could be the problem?

  • @duckman6541
    @duckman6541 3 ปีที่แล้ว

    practical and helpful

    • @discospiff
      @discospiff  3 ปีที่แล้ว

      Glad it helped! Thanks for the comment.

  • @felixforshort9805
    @felixforshort9805 2 ปีที่แล้ว

    Great stuff

    • @discospiff
      @discospiff  2 ปีที่แล้ว

      Thanks! XPath is great for getting information quickly and accurately out of an XML document.

    • @sachendra06
      @sachendra06 2 ปีที่แล้ว

      @@discospiff Hi Bradan, Can we update a specific attribute value using xmllint ? if yes, I would like to know the way forward. Thanks in Advance !

  • @wasabulldog7755
    @wasabulldog7755 3 ปีที่แล้ว

    Can i use this for text or its only for numbers?

    • @discospiff
      @discospiff  3 ปีที่แล้ว

      What do you want to do with the text?

    • @wasabulldog7755
      @wasabulldog7755 3 ปีที่แล้ว

      @@discospiff
      I got this
      James
      sunshine
      Lisa
      yes
      James
      Test
      I only want to extrude the titles Who have the author James.

  • @felipealvarez1982
    @felipealvarez1982 4 ปีที่แล้ว

    a backslash \ points backwards (left), forward slash / points forward (right)

    • @discospiff
      @discospiff  4 ปีที่แล้ว +1

      Thanks for the explanation. I've found that, even if I understand it, my audience might not. If I say, "backslash", 1/3 wil get it right, 1/3 wil get it wrong, and 1/3 will ask which one it is. :)

    • @pawemotylski9278
      @pawemotylski9278 ปีที่แล้ว

      I say division/not division sign, to clarify😀