This is not a question for the OpenLayers developer list.

Just post on stackoverflow under javascript and/or xml.

Best regards,
Bart

> On 9 Nov 2016, at 15:34, crossdomain via OL3 Dev 
> <ol3-dev+apn2wqf5dbneldjyux_htxlxbsplez_0sowcjeme4edkgn7biq9oa...@googlegroups.com>
>  wrote:
> 
> Hello,
> Im trying to make a webviewer and wanna only read the first tagname <Name> 
> out the Capabilities.xml.       
> When i use: 
> var x = xmlDoc.getElementsByTagName("Name");
> it give me also the other tagname in <Style>.
> 
> How can i delete the tag <Name> in <Style>. Or how can i only get the first 
> tagname in <Layer>. This the one i need to take the layername and display it 
> in the viewer.
> 
> Who knows this???
> 
> 
> <Layer queryable="1" opaque="0">
>         <Name>ahn2_05m_int</Name>    <<<<<<<<<<This one>>>>>>
>         <Title>ahn2_0.5m_geinterpoleerd</Title>
>         <Abstract/>
>         <KeywordList>
>           <Keyword>WCS</Keyword>
>           <Keyword>ImageMosaic</Keyword>
>           <Keyword>ahn2_05m_int</Keyword>
>           <Keyword>infoMapAccessService</Keyword>
>         </KeywordList>
>         <CRS>EPSG:28992</CRS>
>         <CRS>CRS:84</CRS>
>         <EX_GeographicBoundingBox>
>           <westBoundLongitude>3.247598752084866</westBoundLongitude>
>           <eastBoundLongitude>7.257742689700455</eastBoundLongitude>
>           <southBoundLatitude>50.728891615388974</southBoundLatitude>
>           <northBoundLatitude>53.53246277298016</northBoundLatitude>
>         </EX_GeographicBoundingBox>
>         <BoundingBox CRS="CRS:84" minx="3.247598752084866" 
> miny="50.728891615388974" maxx="7.257742689700455" maxy="53.53246277298016"/>
>         <BoundingBox CRS="EPSG:28992" minx="13000.0" miny="306250.0" 
> maxx="279000.0" maxy="616250.0"/>
>         <BoundingBox CRS="EPSG:4326" minx="50.72869738465634" 
> miny="3.246545004046175" maxx="53.53226914232056" maxy="7.256670702817714"/>
>         <BoundingBox CRS="EPSG:4258" minx="50.72869738558046" 
> miny="3.246545004046175" maxx="53.53226914322182" maxy="7.256670702817714"/>
>         <BoundingBox CRS="EPSG:3035" minx="3072958.0190181057" 
> miny="3854022.6612462844" maxx="3399253.612019572" maxy="4139060.8896294045"/>
>         <BoundingBox CRS="EPSG:3034" minx="2667624.2324392176" 
> miny="3548986.4721450764" maxx="2982493.1329725673" 
> maxy="3824132.2923488356"/>
>         <BoundingBox CRS="EPSG:3857" minx="361403.7366878665" 
> miny="6573443.017669047" maxx="807808.8874921346" maxy="7082066.659439815"/>
>         <BoundingBox CRS="EPSG:25831" minx="516348.7956727453" 
> miny="5619723.1291915905" maxx="792368.7222270598" maxy="5938314.292717852"/>
>         <BoundingBox CRS="EPSG:25832" minx="103196.4798537966" 
> miny="5621761.058799986" maxx="384414.39765056974" maxy="5944794.755039554"/>
>         <MetadataURL type="TC211">
>           <Format>text/plain</Format>
>           <OnlineResource xlink:type="simple" 
> xlink:href="http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=b9dd8575-3c1c-41f4-add5-c4f5f2b67181"/>
>         </MetadataURL>
>         <Style>
>           <Name>ahn2:ahn2_05m_detail</Name>     <<<<<<<<<not this one<<<<<<<<
>           <Title>ahn2_05m</Title>
>           <Abstract>Style for AHN_2 (m)</Abstract>
>           <LegendURL width="215" height="1129">
>             <Format>image/png</Format>
>             <OnlineResource xlink:type="simple" 
> xlink:href="http://geodata.nationaalgeoregister.nl/ahn2/ows?service=WMS&amp;request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ahn2_05m_int"/>
>           </LegendURL>
>         </Style>
>         <MaxScaleDenominator>20000.0</MaxScaleDenominator>
>       </Layer>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "OL3 Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ol3-dev+unsubscr...@googlegroups.com 
> <mailto:ol3-dev+unsubscr...@googlegroups.com>.
> To post to this group, send email to ol3-dev@googlegroups.com 
> <mailto:ol3-dev@googlegroups.com>.
> Visit this group at https://groups.google.com/group/ol3-dev 
> <https://groups.google.com/group/ol3-dev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ol3-dev/78e6b25a-869a-44e2-846a-361ff2c5e3ec%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ol3-dev/78e6b25a-869a-44e2-846a-361ff2c5e3ec%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ol3-dev+unsubscr...@googlegroups.com.
To post to this group, send email to ol3-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/D0A07E55-270F-4486-BB49-B3BA8986657E%40boundlessgeo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to