query a column of xml files

  • Quick suggestion

    😎

    use mysql1

    ;WITH XMLNAMESPACES('http://schemas.openehr.org/v1' as bp,'http://www.w3.org/2001/XMLSchema-instance' as xsi,'OBSERVATION' as type)

    select * from (

    select

    m.c.value('(/bp:magnitude/text())','int') as systolisch

    from

    [schema_name].[table_name] [alias]

    cross apply [alias].[xml column name].nodes('/bp:content/bp:data/bp:events/bp:data/bp:items/bp:value') as m(c))m;

  • It works. Thanks alot 🙂

    I thought to much

Viewing 2 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply