---
title: "hasChildNodeWithName | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function hasChildNodeWithName

-   hasChildNodeWithName(doc: [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/), nodeName: string): boolean[](#haschildnodewithname)
    
    Check one of the top level child node is of a given type ("gpx", "kml"). The check is not case sensitive.
    
    #### Parameters
    
    -   doc: [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/)
    -   nodeName: string
    
    #### Returns boolean
