Menu

how to interrogate a mapping?

Help
zmc
2007-07-27
2015-03-10
  • zmc

    zmc - 2007-07-27

    Hi,

    How do you interrogate a mapping?

    I am looking at the API, while there is a AddMappingNode method, I can't find anything to get a node given a key? Can someone give me a hint?

     
    • Christophe Lambrechts

      Hi,

      Are you still wrestling with the problem? If so, we possibly can look at it.

      Greets Christophe

       
  • Stuart Longland

    Stuart Longland - 2015-03-10

    I just stumbled on this library today looking for a YAML parser in .NET, and ran into the same problem.

    It would appear childNodes has the data I want, but there's nothing that will let me query its content.

    My use case is simple. Given a document like the following:

    field1: value
    field2: 1234
    ...

    I need to be able to query 'field1' and 'field2', retrieving the value for that key (whether it be a list, string, datetime, integer, etc)..

     

Log in to post a comment.